From 67f78f680d4b72d24a280be528a00778dcdf28dc Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Sat, 27 Nov 2010 17:39:02 -0200 Subject: plugins: explicitly compare pointers to NULL This patch was generated by the following semantic patch (http://coccinelle.lip6.fr/) // @fix disable is_null,isnt_null1@ expression *E; @@ - !E + E == NULL // --- plugins/calypso.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/calypso.c') diff --git a/plugins/calypso.c b/plugins/calypso.c index f787c7b6..0e29256a 100644 --- a/plugins/calypso.c +++ b/plugins/calypso.c @@ -170,7 +170,7 @@ static void simind_notify(GAtResult *result, gpointer user_data) struct calypso_data *data = ofono_modem_get_data(modem); GAtResultIter iter; - if (!data->sim) + if (data->sim == NULL) return; g_at_result_iter_init(&iter, result); @@ -257,7 +257,7 @@ static void mux_setup(GAtMux *mux, gpointer user_data) DBG("%p", mux); - if (!mux) { + if (mux == NULL) { ofono_modem_set_powered(modem, FALSE); return; } -- cgit v1.2.3