diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-04-16 22:24:35 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2019-04-17 15:49:40 +0200 |
commit | e563b6433357977bafcb9767b5f417786e1c3e6a (patch) | |
tree | 91271c0fe7727f726566552cfca65c5c3c222db0 | |
parent | 4e26c903975c080afa98e78e29879ae42b5be2fa (diff) | |
download | hardware_replicant_libsamsung-ril-e563b6433357977bafcb9767b5f417786e1c3e6a.tar.gz hardware_replicant_libsamsung-ril-e563b6433357977bafcb9767b5f417786e1c3e6a.tar.bz2 hardware_replicant_libsamsung-ril-e563b6433357977bafcb9767b5f417786e1c3e6a.zip |
Remove unused variables
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rw-r--r-- | call.c | 1 | ||||
-rw-r--r-- | data.c | 6 | ||||
-rw-r--r-- | network.c | 2 | ||||
-rw-r--r-- | oem.c | 1 | ||||
-rw-r--r-- | samsung-ril.c | 4 | ||||
-rw-r--r-- | sim.c | 1 | ||||
-rw-r--r-- | sms.c | 1 | ||||
-rw-r--r-- | srs.c | 5 |
8 files changed, 0 insertions, 21 deletions
@@ -265,7 +265,6 @@ int ipc_call_list(struct ipc_message *message) unsigned char count; unsigned char index; char *number; - int rc; if (message == NULL || message->data == NULL || message->size < sizeof(struct ipc_call_list_header)) return -1; @@ -75,7 +75,6 @@ int ril_data_connection_register(unsigned int cid, char *apn, char *username, struct ril_data_connection *data_connection; struct list_head *list_end; struct list_head *list; - unsigned int i; if (apn == NULL || ril_data == NULL) return -1; @@ -103,7 +102,6 @@ int ril_data_connection_register(unsigned int cid, char *apn, char *username, int ril_data_connection_unregister(struct ril_data_connection *data_connection) { struct list_head *list; - unsigned int i; if (data_connection == NULL || ril_data == NULL) return -1; @@ -459,7 +457,6 @@ int ril_request_setup_data_call(void *data, size_t size, RIL_Token token) char *username = NULL; char *password = NULL; char **values = NULL; - unsigned int i; int rc; if (data == NULL || size < 6 * sizeof(char *)) @@ -728,7 +725,6 @@ int ril_request_deactivate_data_call(void *data, size_t size, RIL_Token token) struct ril_request *request; char **values = NULL; unsigned int cid; - unsigned int i; int rc; if (data == NULL || size < 2 * sizeof(char *)) @@ -876,8 +872,6 @@ int ipc_gprs_call_status(struct ipc_message *message) struct ipc_gprs_call_status_data *data; struct ril_data_connection *data_connection; struct ril_request *request; - int fail_cause; - unsigned int i; int rc; if (message == NULL || message->data == NULL || message->size < sizeof(struct ipc_gprs_call_status_data)) @@ -74,7 +74,6 @@ int ipc2ril_disp_icon_info(struct ipc_disp_icon_info_response_data *data, int asu_bars[] = { 1, 3, 5, 8, 12, 15 }; unsigned int asu_bars_count = sizeof(asu_bars) / sizeof(int); unsigned char asu_bars_index; - int rc; if (data == NULL || strength == NULL) return -1; @@ -735,7 +734,6 @@ int ipc_net_plmn_list(struct ipc_message *message) char **network; unsigned char count; unsigned char index; - unsigned int i; int rc; if (message == NULL || message->data == NULL || message->size < sizeof(struct ipc_net_plmn_list_header)) @@ -35,7 +35,6 @@ int ipc_svc_display_screen(struct ipc_message *message) void *screen_data = NULL; size_t screen_size = 0; unsigned char count; - int rc; if (message == NULL || message->data == NULL || message->size < sizeof(struct ipc_svc_display_screen_header)) return -1; diff --git a/samsung-ril.c b/samsung-ril.c index 6a53fe4..7f1e7dd 100644 --- a/samsung-ril.c +++ b/samsung-ril.c @@ -851,7 +851,6 @@ int ril_request_dispatch(struct ril_request *request) { unsigned int i; int status; - int rc; if (request == NULL || ril_data == NULL) return -1; @@ -937,7 +936,6 @@ int ril_request_data_register(int request, void *data, size_t size) struct ril_request_data *request_data; struct list_head *list_end; struct list_head *list; - unsigned int i; if (data == NULL || ril_data == NULL) return -1; @@ -962,7 +960,6 @@ int ril_request_data_register(int request, void *data, size_t size) int ril_request_data_unregister(struct ril_request_data *request_data) { struct list_head *list; - unsigned int i; if (request_data == NULL || ril_data == NULL) return -1; @@ -1130,7 +1127,6 @@ int ril_radio_state_update(RIL_RadioState radio_state) { struct ril_request *request; unsigned int i; - int rc; if (ril_data == NULL) return -1; @@ -60,7 +60,6 @@ RIL_RadioState ipc2ril_sec_pin_status_response(struct ipc_sec_pin_status_respons RIL_RadioState radio_state; unsigned int index; unsigned int count; - unsigned int i; if (data == NULL || card_status == NULL) return 0; @@ -200,7 +200,6 @@ int ril_request_send_sms(void *data, size_t size, RIL_Token token) size_t smsc_size = 0; void *pdu = NULL; size_t pdu_size = 0; - unsigned int i; int rc; if (data == NULL || size < 2 * sizeof(char *)) @@ -129,7 +129,6 @@ int srs_send(unsigned short command, const void *data, size_t size) { struct ril_client *ril_client; struct srs_data *srs_data; - struct srs_client *client; struct srs_message message; int rc; @@ -189,7 +188,6 @@ int srs_control_ping(struct srs_message *message) int srs_test_set_radio_state(struct srs_message *message) { struct srs_test_set_radio_state_data *data; - int rc; if (message == NULL || message->data == NULL || message->size < sizeof(struct srs_test_set_radio_state_data)) return -1; @@ -640,7 +638,6 @@ int srs_server_close(struct ril_client *ril_client) { struct srs_data *data; struct srs_client *client; - eventfd_t event; int rc; if (ril_client == NULL || ril_client->data == NULL) @@ -955,8 +952,6 @@ complete: int srs_close(struct ril_client *ril_client) { struct srs_data *data; - struct srs_client *client; - eventfd_t event; int rc; if (ril_client == NULL || ril_client->data == NULL) |