From b6f40de1e15bcb2d324157a5c24028f8a9089f74 Mon Sep 17 00:00:00 2001 From: Ben Chan Date: Wed, 12 Jul 2017 01:03:36 -0700 Subject: [PATCH] telit: remove unused 'flags' variable in mm_telit_get_4g_mm_bands --- plugins/telit/mm-modem-helpers-telit.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/plugins/telit/mm-modem-helpers-telit.c b/plugins/telit/mm-modem-helpers-telit.c index 3b227044..39e0d1bd 100644 --- a/plugins/telit/mm-modem-helpers-telit.c +++ b/plugins/telit/mm-modem-helpers-telit.c @@ -446,7 +446,6 @@ mm_telit_get_4g_mm_bands(GMatchInfo *match_info, GArray **bands, GError **error) { - GArray *flags = NULL; MMModemBand band; gboolean ret = TRUE; gchar *match_str = NULL; @@ -489,9 +488,6 @@ end: if (match_str != NULL) g_free (match_str); - if (flags != NULL) - g_array_free (flags, TRUE); - return ret; }