mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-23 04:38:51 -05:00
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>
This commit is contained in:
committed by
David S. Miller
parent
f9fd0e3423
commit
dbbb2f034b
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user