skge: Adjust a null pointer check in skge_down()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 17 Apr 2017 14:08:39 +0000 (16:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Apr 2017 17:55:10 +0000 (13:55 -0400)
commitca735bd83f2d076a0a9ad8aeeb054737e3e0063f
treed3d474e0490f2dd29dcb6ecfdf3267f02b8fc306
parentd77566247d62660b74fbd233a00b8aee76f3bfdb
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>
drivers/net/ethernet/marvell/skge.c