diff options
author | 2024-03-13 11:34:36 -0400 | |
---|---|---|
committer | 2024-03-15 13:57:34 +0000 | |
commit | 237bb5f7f7f55ec5f773469a974c61a49c298625 (patch) | |
tree | 051b76fbd1ce8435ca81bd37a7a400c4e0f3b8ab /drivers/net/ethernet/intel/ice/ice_dcb_lib.c | |
parent | net: stmmac: dwmac-rk: Remove unused of_gpio.h (diff) | |
download | linux-rng-237bb5f7f7f55ec5f773469a974c61a49c298625.tar.xz linux-rng-237bb5f7f7f55ec5f773469a974c61a49c298625.zip |
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: ab677ff4ad15 ("cxgb4: Allocate Tx queues dynamically")
Signed-off-by: Mikhail Lobanov <m.lobanov@rosalinux.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_dcb_lib.c')
0 files changed, 0 insertions, 0 deletions