]> git.baikalelectronics.ru Git - kernel.git/commit
net: hsr: fix NULL checks in the code
authorMurali Karicheri <m-karicheri2@ti.com>
Fri, 5 Apr 2019 17:31:28 +0000 (13:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Apr 2019 01:32:21 +0000 (18:32 -0700)
commit5ff5803c73b515932d1905ae4531ec4668314e57
tree9132726d5a25f4dbf393027bb1d0b7882b981f6e
parent3754d531e863d24959d3e8d7f340334b076cd63d
net: hsr: fix NULL checks in the code

This patch replaces all instance of NULL checks such as
    if (foo == NULL) with if (!foo)
Also
    if (foo != NULL) with if (foo)

This is seen when ran checkpatch.pl -f on files under net/hsr
and suggestion is to replace as above.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/hsr/hsr_device.c
net/hsr/hsr_forward.c
net/hsr/hsr_framereg.c
net/hsr/hsr_main.c
net/hsr/hsr_slave.c