mbmmodem: Remove useless NULL checks before g_free

This commit is contained in:
Marcel Holtmann 2010-08-16 22:09:09 +02:00
parent f284f3542b
commit e4e215e88b
1 changed files with 3 additions and 6 deletions

View File

@ -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);
}