net: amd: Unified the comparison between pointers and NULL to the same writing
authorGuofeng Yue <yueguofeng@hisilicon.com>
Wed, 7 Sep 2022 06:28:10 +0000 (14:28 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2022 09:27:47 +0000 (10:27 +0100)
commitb0b815a356aa4f3352563b3350a7b2354c0f2c5c
treead8aca9339484b68bfdd66c280d04de293a488e5
parent454e7b138436a31a17753de58f2178c3e955886c
net: amd: Unified the comparison between pointers and NULL to the same writing

Using the unified way to compare pointers and NULL, which cleans the static
warning.

eg:
if (skb == NULL) --> if (!skb)
if (skb != NULL) --> if (skb)

Signed-off-by: Guofeng Yue <yueguofeng@hisilicon.com>
Signed-off-by: Haoyue Xu <xuhaoyue1@hisilicon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/a2065.c
drivers/net/ethernet/amd/amd8111e.c
drivers/net/ethernet/amd/ariadne.c
drivers/net/ethernet/amd/atarilance.c
drivers/net/ethernet/amd/au1000_eth.c
drivers/net/ethernet/amd/lance.c
drivers/net/ethernet/amd/nmclan_cs.c
drivers/net/ethernet/amd/pcnet32.c
drivers/net/ethernet/amd/sun3lance.c
drivers/net/ethernet/amd/sunlance.c