diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2010-11-27 17:38:56 -0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-11-29 11:37:09 -0600 |
commit | b82a7f851159a42f6ca38a2357551a94a4402e11 (patch) | |
tree | 6bf00675085885091b496bf1b0ab899b9a8f79e3 /drivers/nwmodem/radio-settings.c | |
parent | 43d2435e64e4448cbdce222c68cb1352c5c74276 (diff) | |
download | ofono-b82a7f851159a42f6ca38a2357551a94a4402e11.tar.bz2 |
drivers: 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 'drivers/nwmodem/radio-settings.c')
-rw-r--r-- | drivers/nwmodem/radio-settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nwmodem/radio-settings.c b/drivers/nwmodem/radio-settings.c index 2f5527e1..36fab393 100644 --- a/drivers/nwmodem/radio-settings.c +++ b/drivers/nwmodem/radio-settings.c @@ -170,7 +170,7 @@ static int nw_radio_settings_probe(struct ofono_radio_settings *rs, struct radio_settings_data *rsd; rsd = g_try_new0(struct radio_settings_data, 1); - if (!rsd) + if (rsd == NULL) return -ENOMEM; rsd->chat = g_at_chat_clone(chat); |