summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2010-11-27 17:38:59 -0200
committerDenis Kenzior <denkenz@gmail.com>2010-11-29 11:59:07 -0600
commit00cdf2b427a788492baeb0e29b9063a36ef1effe (patch)
tree20f429ba4ccafd25d2b3285104b7c694e08744b2 /examples
parent86aae128d3f1de48cba40a6bc94dd837e17eb322 (diff)
downloadofono-00cdf2b427a788492baeb0e29b9063a36ef1effe.tar.bz2
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.c2
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",