]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: bnx2: Replace NULL comparison
authorVarsha Rao <rvarsha016@gmail.com>
Sun, 3 Jun 2018 11:49:52 +0000 (17:19 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jun 2018 21:07:27 +0000 (17:07 -0400)
commit9cb07550060f7082d72cb5f82dd2ce6e44b4700a
treef98ff30e4915406ee6d0162b52387c536e8b5381
parent47addb650d41f63a900e2127d59c0df48cb5d8d1
net: ethernet: bnx2: Replace NULL comparison

This patch fixes the checkpatch issue of NULL comparison. Replace x == NULL
with !x, by using the following coccinelle script:

@disable is_null@
expression e;
@@
-e==NULL
+!e

Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2.c