Commit dbbb2f03 authored by Markus Elfring's avatar Markus Elfring Committed by David S. Miller

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f9fd0e34
...@@ -4415,7 +4415,7 @@ static void mvpp2_egress_enable(struct mvpp2_port *port) ...@@ -4415,7 +4415,7 @@ static void mvpp2_egress_enable(struct mvpp2_port *port)
for (queue = 0; queue < txq_number; queue++) { for (queue = 0; queue < txq_number; queue++) {
struct mvpp2_tx_queue *txq = port->txqs[queue]; struct mvpp2_tx_queue *txq = port->txqs[queue];
if (txq->descs != NULL) if (txq->descs)
qmap |= (1 << queue); qmap |= (1 << queue);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment