summaryrefslogtreecommitdiffstats
path: root/plugins/n900.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2010-11-27 17:39:02 -0200
committerDenis Kenzior <denkenz@gmail.com>2010-11-29 12:55:49 -0600
commit67f78f680d4b72d24a280be528a00778dcdf28dc (patch)
treed10be52dcdeb7048b4b4db6e4b73a92019fd9f42 /plugins/n900.c
parent521071a7853b225713606de3e0421e680f187709 (diff)
downloadofono-67f78f680d4b72d24a280be528a00778dcdf28dc.tar.bz2
plugins: explicitly compare pointers to NULL
This patch was generated by the following semantic patch (http://coccinelle.lip6.fr/) // <smpl> @fix disable is_null,isnt_null1@ expression *E; @@ - !E + E == NULL // </smpl>
Diffstat (limited to 'plugins/n900.c')
-rw-r--r--plugins/n900.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/n900.c b/plugins/n900.c
index a9e6b59f..76198219 100644
--- a/plugins/n900.c
+++ b/plugins/n900.c
@@ -398,7 +398,7 @@ static int n900_probe(struct ofono_modem *modem)
DBG("(%p) with %s", modem, ifname);
idx = g_isi_modem_by_name(ifname);
- if (!idx) {
+ if (idx == NULL) {
DBG("Interface=%s: %s", ifname, strerror(errno));
return -errno;
}
@@ -409,7 +409,7 @@ static int n900_probe(struct ofono_modem *modem)
}
isi = g_new0(struct isi_data, 1);
- if (!isi) {
+ if (isi == NULL) {
gpio_remove(modem);
return -ENOMEM;
}
@@ -451,7 +451,7 @@ static void n900_set_online(struct ofono_modem *modem,
DBG("(%p) with %s", modem, isi->ifname);
- if (!cbd)
+ if (cbd == NULL)
goto error;
if (isi->power_state != POWER_STATE_ON)