]> 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)
commitb1bb824c1205635c42bca4287f5fc2e2cb4c6f09
treef98ff30e4915406ee6d0162b52387c536e8b5381
parent85e1911b923beb992fc44effb12b0c9cf27edc7f
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