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/udev.c | |
parent | 521071a7853b225713606de3e0421e680f187709 (diff) | |
download | ofono-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/udev.c')
-rw-r--r-- | plugins/udev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/udev.c b/plugins/udev.c index 737a6370..255755e2 100644 --- a/plugins/udev.c +++ b/plugins/udev.c @@ -555,7 +555,7 @@ static void remove_modem(struct udev_device *udev_device) DBG("%s", curpath); devpath = g_hash_table_lookup(devpath_list, curpath); - if (!devpath) + if (devpath == NULL) return; modem = find_modem(devpath); @@ -681,7 +681,7 @@ static int udev_init(void) { devpath_list = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); - if (!devpath_list) { + if (devpath_list == NULL) { ofono_error("Failed to create udev path list"); return -ENOMEM; } |