summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mbmmodem/location-reporting.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/mbmmodem/location-reporting.c b/drivers/mbmmodem/location-reporting.c
index b76a5c24..1080e62a 100644
--- a/drivers/mbmmodem/location-reporting.c
+++ b/drivers/mbmmodem/location-reporting.c
@@ -166,16 +166,12 @@ static void mbm_location_reporting_enable(struct ofono_location_reporting *lr,
DBG("lr=%p", lr);
- if (cbd == NULL)
- goto out;
-
cbd->user = lr;
if (g_at_chat_send(gd->chat, "AT*E2GPSCTL=1,5,1", none_prefix,
mbm_e2gpsctl_enable_cb, cbd, g_free) > 0)
return;
-out:
CALLBACK_WITH_FAILURE(cb, -1, data);
g_free(cbd);
}