net/qede: assume mbuf to free is never null
authorBalazs Nemeth <bnemeth@redhat.com>
Fri, 26 Mar 2021 11:01:26 +0000 (12:01 +0100)
committerJerin Jacob <jerinj@marvell.com>
Sat, 27 Mar 2021 14:00:30 +0000 (15:00 +0100)
commit303e78f2bc0e6d3b1dc889a2de4d0c5875061cb8
tree24e02dd47cf329224eb514dbb068d561fd7a20d5
parent2c41740bf19ed0eb16d883557a24a654c804a0b4
net/qede: assume mbuf to free is never null

The ring txq->sw_tx_ring is managed with txq->sw_tx_cons. As long as
txq->sw_tx_cons is correct, there is no need to check if
txq->sw_tx_ring[idx] is null explicitly.

Signed-off-by: Balazs Nemeth <bnemeth@redhat.com>
Reviewed-by: Igor Russkikh <irusskikh@marvell.com>
drivers/net/qede/qede_rxtx.c