summaryrefslogtreecommitdiffstats
path: root/drivers/mbmmodem
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2011-03-04 10:10:14 -0300
committerMarcel Holtmann <marcel@holtmann.org>2011-03-04 05:13:51 -0800
commit86998818b70ab030c74cdf2f5de83cd9893cc993 (patch)
tree5a630519d3168d84551bceb22033be2c239216d6 /drivers/mbmmodem
parenta55a136a0428c65beafa36870b576a5b87c117c1 (diff)
downloadofono-86998818b70ab030c74cdf2f5de83cd9893cc993.tar.bz2
mbmmodem: do not check for NULL pointer
cb_data_new() uses g_new0(), hence there's no need to check the return value being NULL.
Diffstat (limited to 'drivers/mbmmodem')
-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);
}