Skip to content
Commit 237bb5f7 authored by Mikhail Lobanov's avatar Mikhail Lobanov Committed by David S. Miller
Browse files

cxgb4: unnecessary check for 0 in the free_sge_txq_uld() function

The free_sge_txq_old() function has an unnecessary txq check of 0.
This check is not necessary, since the txq pointer is initialized by the
uldtxq[i] address from the operation &txq_info->uldtxq[i], which ensures
that txq is not equal to 0.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: ab677ff4

 ("cxgb4: Allocate Tx queues dynamically")
Signed-off-by: default avatarMikhail Lobanov <m.lobanov@rosalinux.ru>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 19c5c04d
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