mirror of git://git.sysmocom.de/ofono
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:
parent
86aae128d3
commit
00cdf2b427
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue