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>
This commit is contained in:
Lucas De Marchi 2010-11-27 17:38:59 -02:00 committed by Denis Kenzior
parent 86aae128d3
commit 00cdf2b427
1 changed files with 1 additions and 1 deletions

View File

@ -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",