aboutsummaryrefslogtreecommitdiff
path: root/plugins/wavecom
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/wavecom
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/wavecom')
-rw-r--r--plugins/wavecom/mm-broadband-modem-wavecom.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/wavecom/mm-broadband-modem-wavecom.c b/plugins/wavecom/mm-broadband-modem-wavecom.c
index 5da6c232..51e50456 100644
--- a/plugins/wavecom/mm-broadband-modem-wavecom.c
+++ b/plugins/wavecom/mm-broadband-modem-wavecom.c
@@ -317,8 +317,7 @@ wwsm_read_ready (MMBaseModem *self,
g_object_unref (task);
g_regex_unref (r);
- if (match_info)
- g_match_info_free (match_info);
+ g_match_info_free (match_info);
}
static void