mirror of git://git.sysmocom.de/ofono
mbmmodem: Remove useless NULL checks before g_free
This commit is contained in:
parent
f284f3542b
commit
e4e215e88b
|
@ -324,8 +324,7 @@ static void mbm_cgdcont_cb(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
mbm_enap_up_cb, ncbd, g_free) > 0)
|
||||
return;
|
||||
|
||||
if (ncbd)
|
||||
g_free(ncbd);
|
||||
g_free(ncbd);
|
||||
|
||||
gcd->active_context = 0;
|
||||
|
||||
|
@ -371,8 +370,7 @@ static void mbm_gprs_activate_primary(struct ofono_gprs_context *gc,
|
|||
return;
|
||||
|
||||
error:
|
||||
if (cbd)
|
||||
g_free(cbd);
|
||||
g_free(cbd);
|
||||
|
||||
CALLBACK_WITH_FAILURE(cb, NULL, 0, NULL, NULL, NULL, NULL, data);
|
||||
}
|
||||
|
@ -394,8 +392,7 @@ static void mbm_gprs_deactivate_primary(struct ofono_gprs_context *gc,
|
|||
return;
|
||||
|
||||
error:
|
||||
if (cbd)
|
||||
g_free(cbd);
|
||||
g_free(cbd);
|
||||
|
||||
CALLBACK_WITH_FAILURE(cb, data);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue