diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2010-11-27 17:38:59 -0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-11-29 11:59:07 -0600 |
commit | 00cdf2b427a788492baeb0e29b9063a36ef1effe (patch) | |
tree | 20f429ba4ccafd25d2b3285104b7c694e08744b2 /examples | |
parent | 86aae128d3f1de48cba40a6bc94dd837e17eb322 (diff) | |
download | android_external_ofono-00cdf2b427a788492baeb0e29b9063a36ef1effe.tar.gz android_external_ofono-00cdf2b427a788492baeb0e29b9063a36ef1effe.tar.bz2 android_external_ofono-00cdf2b427a788492baeb0e29b9063a36ef1effe.zip |
examples: 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 'examples')
-rw-r--r-- | examples/nettime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/nettime.c b/examples/nettime.c index 60045be5..3843ce27 100644 --- a/examples/nettime.c +++ b/examples/nettime.c @@ -50,7 +50,7 @@ static void example_nettime_remove(struct ofono_nettime_context *context) static void example_nettime_info_received(struct ofono_nettime_context *context, struct ofono_network_time *info) { - if (!info) + if (info == NULL) return; ofono_debug("Received a network time notification on modem: %p", |