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>
---
examples/nettime.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/examples/nettime.c b/examples/nettime.c
index 60045be..3843ce2 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",
--
1.7.3.2