aboutsummaryrefslogtreecommitdiff
path: root/plugins/mbm/mm-modem-helpers-mbm.c
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2018-10-17 23:06:48 -0700
committerAleksander Morgado <aleksander@aleksander.es>2018-10-18 13:17:36 +0200
commit7de6b6f2e176ed60f1f74d0d8704f73e39585891 (patch)
treee7a8e4adb2c7b6cd9da12be4c281440f6a796bc6 /plugins/mbm/mm-modem-helpers-mbm.c
parent749b806c30b41512dec4901808976425cdf3e56b (diff)
core: remove unnecessary NULL checks for g_match_info_free()
g_match_info_free() already check if the given pointer is NULL and does nothing on a NULL pointer.
Diffstat (limited to 'plugins/mbm/mm-modem-helpers-mbm.c')
-rw-r--r--plugins/mbm/mm-modem-helpers-mbm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mbm/mm-modem-helpers-mbm.c b/plugins/mbm/mm-modem-helpers-mbm.c
index ca024ddb..18656e57 100644
--- a/plugins/mbm/mm-modem-helpers-mbm.c
+++ b/plugins/mbm/mm-modem-helpers-mbm.c
@@ -159,8 +159,7 @@ mm_mbm_parse_e2ipcfg_response (const gchar *response,
}
done:
- if (match_info)
- g_match_info_free (match_info);
+ g_match_info_free (match_info);
g_regex_unref (r);
return !!*ip_config;
}