diff options
author | YueHaibing <yuehaibing@huawei.com> | 2018-11-28 13:29:39 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-28 20:09:11 +0100 |
commit | 8eb08cf8a35a525dc40b9fedd33833a4a7aecfb2 (patch) | |
tree | 70eb6b5137d45b499ad4d8bfa7b99f6829e48fac /arch/xtensa | |
parent | net: neterion: vxge: remove set but not used variables 'max_frags' and 'txdl_... (diff) | |
download | linux-8eb08cf8a35a525dc40b9fedd33833a4a7aecfb2.tar.xz linux-8eb08cf8a35a525dc40b9fedd33833a4a7aecfb2.zip |
qlcnic: remove set but not used variables 'cur_rings, max_hw_rings, tx_desc_info'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c:4011:5:
warning: variable 'max_hw_rings' set but not used [-Wunused-but-set-variable]
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c:4013:6:
warning: variable 'cur_rings' set but not used [-Wunused-but-set-variable]
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c:2996:25:
warning: variable 'tx_desc_info' set but not used [-Wunused-but-set-variable]
'cur_rings, max_hw_rings' never used since introduction in commit
34e8c406fda5 ("qlcnic: refactor Tx/SDS ring calculation and validation in driver.")
'tx_desc_info' never used since commit
95b3890ae39f ("qlcnic: Enhance Tx timeout debugging.")
Also 'queue_type' only can be QLCNIC_RX_QUEUE/QLCNIC_TX_QUEUE,
so make a trival cleanup on if statement.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Shahed Shaikh <shahed.shaikh@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/xtensa')
0 files changed, 0 insertions, 0 deletions