diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/huawei/mm-plugin-huawei.c | 3 | ||||
-rw-r--r-- | plugins/icera/mm-modem-helpers-icera.c | 4 | ||||
-rw-r--r-- | plugins/novatel/mm-common-novatel.c | 3 | ||||
-rw-r--r-- | plugins/ublox/mm-plugin-ublox.c | 5 |
4 files changed, 5 insertions, 10 deletions
diff --git a/plugins/huawei/mm-plugin-huawei.c b/plugins/huawei/mm-plugin-huawei.c index ba3bc009..0cefe71e 100644 --- a/plugins/huawei/mm-plugin-huawei.c +++ b/plugins/huawei/mm-plugin-huawei.c @@ -180,12 +180,11 @@ curc_ready (MMPortSerialAt *port, GTask *task) { HuaweiCustomInitContext *ctx; - const gchar *response; GError *error = NULL; ctx = g_task_get_task_data (task); - response = mm_port_serial_at_command_finish (port, res, &error); + mm_port_serial_at_command_finish (port, res, &error); if (error) { /* Retry if we get a timeout error */ if (g_error_matches (error, diff --git a/plugins/icera/mm-modem-helpers-icera.c b/plugins/icera/mm-modem-helpers-icera.c index 1b64d633..7c1da9a5 100644 --- a/plugins/icera/mm-modem-helpers-icera.c +++ b/plugins/icera/mm-modem-helpers-icera.c @@ -215,7 +215,7 @@ mm_icera_parse_ipdpaddr_response (const gchar *response, GError *local = NULL; gboolean success = FALSE; char **items; - guint num_items, i, first_free; + guint num_items, i; gint num; g_return_val_if_fail (out_ip4_config, FALSE); @@ -240,7 +240,7 @@ mm_icera_parse_ipdpaddr_response (const gchar *response, /* Strip any spaces on elements; inet_pton() doesn't like them */ num_items = g_strv_length (items); - for (i = 0, first_free = 0; i < num_items; i++) + for (i = 0; i < num_items; i++) items[i] = g_strstrip (items[i]); if (num_items < 7) { diff --git a/plugins/novatel/mm-common-novatel.c b/plugins/novatel/mm-common-novatel.c index f8c78f51..6932f5a9 100644 --- a/plugins/novatel/mm-common-novatel.c +++ b/plugins/novatel/mm-common-novatel.c @@ -47,10 +47,9 @@ nwdmat_ready (MMPortSerialAt *port, GAsyncResult *res, GTask* task) { - const gchar *response; GError *error = NULL; - response = mm_port_serial_at_command_finish (port, res, &error); + mm_port_serial_at_command_finish (port, res, &error); if (error) { if (g_error_matches (error, MM_SERIAL_ERROR, diff --git a/plugins/ublox/mm-plugin-ublox.c b/plugins/ublox/mm-plugin-ublox.c index fc9ec0c6..f4553a60 100644 --- a/plugins/ublox/mm-plugin-ublox.c +++ b/plugins/ublox/mm-plugin-ublox.c @@ -156,15 +156,12 @@ quick_at_ready (MMPortSerialAt *port, GAsyncResult *res, GTask *task) { - CustomInitContext *ctx; MMPortProbe *probe; - const gchar *response; GError *error = NULL; - ctx = g_task_get_task_data (task); probe = g_task_get_source_object (task); - response = mm_port_serial_at_command_finish (port, res, &error); + mm_port_serial_at_command_finish (port, res, &error); if (error) { /* On a timeout error, wait for READY URC */ if (g_error_matches (error, MM_SERIAL_ERROR, MM_SERIAL_ERROR_RESPONSE_TIMEOUT)) { |