mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
skge: Adjust a null pointer check in skge_down()
The script "checkpatch.pl" pointed information out like the following. Comparison to NULL could be written "!skge->mem". Thus fix the affected source code place. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d77566247d
commit
ca735bd83f
1 changed files with 1 additions and 1 deletions
|
@ -2657,7 +2657,7 @@ static int skge_down(struct net_device *dev)
|
||||||
struct skge_hw *hw = skge->hw;
|
struct skge_hw *hw = skge->hw;
|
||||||
int port = skge->port;
|
int port = skge->port;
|
||||||
|
|
||||||
if (skge->mem == NULL)
|
if (!skge->mem)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
netif_info(skge, ifdown, skge->netdev, "disabling interface\n");
|
netif_info(skge, ifdown, skge->netdev, "disabling interface\n");
|
||||||
|
|
Loading…
Reference in a new issue