diff options
author | 2017-04-17 14:07:52 +0200 | |
---|---|---|
committer | 2017-04-18 13:55:09 -0400 | |
commit | dbbb2f034b5a5c1da368e4ac7e85a4ee4922f57b (patch) | |
tree | 97c862e970a15a69ea64b76cbc943354c8b2b8e9 /drivers/net/ethernet | |
parent | net: mvpp2: Rename a jump label in mvpp2_prs_vlan_add() (diff) | |
download | linux-dbbb2f034b5a5c1da368e4ac7e85a4ee4922f57b.tar.gz linux-dbbb2f034b5a5c1da368e4ac7e85a4ee4922f57b.tar.bz2 linux-dbbb2f034b5a5c1da368e4ac7e85a4ee4922f57b.zip |
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>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/marvell/mvpp2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/mvpp2.c b/drivers/net/ethernet/marvell/mvpp2.c index 3bdd3f1fe34e..9b875d776b29 100644 --- a/drivers/net/ethernet/marvell/mvpp2.c +++ b/drivers/net/ethernet/marvell/mvpp2.c @@ -4415,7 +4415,7 @@ static void mvpp2_egress_enable(struct mvpp2_port *port) for (queue = 0; queue < txq_number; queue++) { struct mvpp2_tx_queue *txq = port->txqs[queue]; - if (txq->descs != NULL) + if (txq->descs) qmap |= (1 << queue); } |