Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca735bd8 authored by Markus Elfring's avatar Markus Elfring Committed by David S. Miller
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d7756624
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2657,7 +2657,7 @@ static int skge_down(struct net_device *dev)
	struct skge_hw *hw = skge->hw;
	int port = skge->port;

	if (skge->mem == NULL)
	if (!skge->mem)
		return 0;

	netif_info(skge, ifdown, skge->netdev, "disabling interface\n");