mirror of git://git.sysmocom.de/ofono
hsomodem: remove NULL check
This commit is contained in:
parent
0f4b44d5cf
commit
85865ac98d
|
@ -156,9 +156,6 @@ static void hso_gprs_activate_primary(struct ofono_gprs_context *gc,
|
|||
char buf[AUTH_BUF_LENGTH];
|
||||
int len;
|
||||
|
||||
if (cbd == NULL)
|
||||
goto error;
|
||||
|
||||
gcd->active_context = ctx->cid;
|
||||
|
||||
cbd->user = gc;
|
||||
|
@ -200,9 +197,6 @@ static void hso_gprs_deactivate_primary(struct ofono_gprs_context *gc,
|
|||
struct cb_data *cbd = cb_data_new(cb, data);
|
||||
char buf[128];
|
||||
|
||||
if (cbd == NULL)
|
||||
goto error;
|
||||
|
||||
cbd->user = gc;
|
||||
|
||||
snprintf(buf, sizeof(buf), "AT_OWANCALL=%u,0,1", cid);
|
||||
|
@ -211,7 +205,6 @@ static void hso_gprs_deactivate_primary(struct ofono_gprs_context *gc,
|
|||
at_owancall_down_cb, cbd, g_free) > 0)
|
||||
return;
|
||||
|
||||
error:
|
||||
g_free(cbd);
|
||||
|
||||
CALLBACK_WITH_FAILURE(cb, data);
|
||||
|
|
Loading…
Reference in New Issue