net: mvpp2: Adjust a null pointer check in mvpp2_egress_enable()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 17 Apr 2017 12:07:52 +0000 (14:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Apr 2017 17:55:09 +0000 (13:55 -0400)
commitdbbb2f034b5a5c1da368e4ac7e85a4ee4922f57b
tree97c862e970a15a69ea64b76cbc943354c8b2b8e9
parentf9fd0e342383033efc8a19deb068c4e30e10bf77
net: mvpp2: Adjust a null pointer check in mvpp2_egress_enable()

The script "checkpatch.pl" pointed information out like the following.

Comparison to NULL could be written "txq->descs".

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/mvpp2.c