mirror of git://git.sysmocom.de/ofono
stemodem: remove NULL check
This commit is contained in:
parent
3fbf85ed82
commit
124a9b1f0a
|
@ -383,9 +383,6 @@ static void ste_gprs_activate_primary(struct ofono_gprs_context *gc,
|
||||||
GSList *l;
|
GSList *l;
|
||||||
struct conn_info *conn;
|
struct conn_info *conn;
|
||||||
|
|
||||||
if (cbd == NULL)
|
|
||||||
goto error_no_device;
|
|
||||||
|
|
||||||
gcd->active_context = ctx->cid;
|
gcd->active_context = ctx->cid;
|
||||||
cbd->user = gc;
|
cbd->user = gc;
|
||||||
|
|
||||||
|
@ -448,9 +445,6 @@ static void ste_gprs_deactivate_primary(struct ofono_gprs_context *gc,
|
||||||
char buf[64];
|
char buf[64];
|
||||||
GSList *l;
|
GSList *l;
|
||||||
|
|
||||||
if (cbd == NULL)
|
|
||||||
goto error;
|
|
||||||
|
|
||||||
gcd->active_context = id;
|
gcd->active_context = id;
|
||||||
cbd->user = gc;
|
cbd->user = gc;
|
||||||
|
|
||||||
|
|
|
@ -187,9 +187,6 @@ static void ste_dial(struct ofono_voicecall *vc,
|
||||||
struct cb_data *cbd = cb_data_new(cb, data);
|
struct cb_data *cbd = cb_data_new(cb, data);
|
||||||
char buf[256];
|
char buf[256];
|
||||||
|
|
||||||
if (cbd == NULL)
|
|
||||||
goto error;
|
|
||||||
|
|
||||||
cbd->user = vc;
|
cbd->user = vc;
|
||||||
|
|
||||||
if (ph->type == 145)
|
if (ph->type == 145)
|
||||||
|
@ -214,7 +211,6 @@ static void ste_dial(struct ofono_voicecall *vc,
|
||||||
atd_cb, cbd, g_free) > 0)
|
atd_cb, cbd, g_free) > 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
error:
|
|
||||||
g_free(cbd);
|
g_free(cbd);
|
||||||
|
|
||||||
CALLBACK_WITH_FAILURE(cb, data);
|
CALLBACK_WITH_FAILURE(cb, data);
|
||||||
|
@ -370,9 +366,6 @@ static void ste_send_dtmf(struct ofono_voicecall *vc, const char *dtmf,
|
||||||
int s;
|
int s;
|
||||||
char *buf;
|
char *buf;
|
||||||
|
|
||||||
if (cbd == NULL)
|
|
||||||
goto error;
|
|
||||||
|
|
||||||
/* strlen("AT+VTS=) = 7 + NULL */
|
/* strlen("AT+VTS=) = 7 + NULL */
|
||||||
buf = g_try_new(char, strlen(dtmf) + 8);
|
buf = g_try_new(char, strlen(dtmf) + 8);
|
||||||
if (buf == NULL)
|
if (buf == NULL)
|
||||||
|
|
Loading…
Reference in New Issue