summaryrefslogtreecommitdiffstats
path: root/plugins/wavecom.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/wavecom.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/wavecom.c')
-rw-r--r--plugins/wavecom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/wavecom.c b/plugins/wavecom.c
index 73fa502c..cb55f850 100644
--- a/plugins/wavecom.c
+++ b/plugins/wavecom.c
@@ -78,12 +78,12 @@ static int wavecom_enable(struct ofono_modem *modem)
DBG("%p", modem);
device = ofono_modem_get_string(modem, "Device");
- if (!device)
+ if (device == NULL)
return -EINVAL;
options = g_hash_table_new(g_str_hash, g_str_equal);
- if (!options)
+ if (options == NULL)
return -ENOMEM;
g_hash_table_insert(options, "Baud", "115200");
@@ -95,7 +95,7 @@ static int wavecom_enable(struct ofono_modem *modem)
g_hash_table_destroy(options);
- if (!channel)
+ if (channel == NULL)
return -EIO;
/*
@@ -108,7 +108,7 @@ static int wavecom_enable(struct ofono_modem *modem)
g_at_syntax_unref(syntax);
g_io_channel_unref(channel);
- if (!chat)
+ if (chat == NULL)
return -ENOMEM;
if (getenv("OFONO_AT_DEBUG"))