hsomodem: remove NULL check

This commit is contained in:
Jeevaka Badrappan 2011-01-29 05:34:38 -08:00 committed by Marcel Holtmann
parent 0f4b44d5cf
commit 85865ac98d
1 changed files with 0 additions and 7 deletions

View File

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