]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: declance: fix comparing pointer to 0
authorChen Zhou <chenzhou10@huawei.com>
Tue, 21 Jan 2020 09:24:55 +0000 (17:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jan 2020 11:04:57 +0000 (12:04 +0100)
commit7136c6ba800167dabb66a529ce5a64833af73e8d
treecd95a74fc6f8527d2e7af86063c9ee2c3ef878f4
parent760e38e755b1284a292f96f78b7e56ca9b5d30e5
drivers: net: declance: fix comparing pointer to 0

Fixes coccicheck warning:

./drivers/net/ethernet/amd/declance.c:611:14-15:
WARNING comparing pointer to 0

Replace "skb == 0" with "!skb".

Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/declance.c