From 00cdf2b427a788492baeb0e29b9063a36ef1effe Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Sat, 27 Nov 2010 17:38:59 -0200 Subject: examples: explicitly compare pointers to NULL This patch was generated by the following semantic patch (http://coccinelle.lip6.fr/) // @fix disable is_null,isnt_null1@ expression *E; @@ - !E + E == NULL // --- examples/nettime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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", -- cgit v1.2.3