diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2010-11-27 17:39:02 -0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-11-29 12:55:49 -0600 |
commit | 67f78f680d4b72d24a280be528a00778dcdf28dc (patch) | |
tree | d10be52dcdeb7048b4b4db6e4b73a92019fd9f42 /plugins/n900.c | |
parent | 521071a7853b225713606de3e0421e680f187709 (diff) | |
download | ofono-67f78f680d4b72d24a280be528a00778dcdf28dc.tar.gz |
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.c | 6 |
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) |