summaryrefslogtreecommitdiffstats
path: root/net/kcm
diff options
context:
space:
mode:
authorZheng Zengkai <zhengzengkai@huawei.com>2020-03-16 21:05:24 +0800
committerDavid S. Miller <davem@davemloft.net>2020-03-16 15:00:56 -0700
commit10ee4b87f5f94c8e6dce4be95f5e56c445d45dbf (patch)
treed6c53413de26c9333c2528c7b67c403753554f35 /net/kcm
parent74522e7baae2561870ea8ddf09dc6a126458cd7b (diff)
downloadlinux-10ee4b87f5f94c8e6dce4be95f5e56c445d45dbf.tar.gz
linux-10ee4b87f5f94c8e6dce4be95f5e56c445d45dbf.tar.bz2
linux-10ee4b87f5f94c8e6dce4be95f5e56c445d45dbf.zip
qede: remove some unused code in function qede_selftest_receive_traffic
Remove set but not used variables 'sw_comp_cons' and 'hw_comp_cons' to fix gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/qlogic/qede/qede_ethtool.c: In function qede_selftest_receive_traffic: drivers/net/ethernet/qlogic/qede/qede_ethtool.c:1569:20: warning: variable sw_comp_cons set but not used [-Wunused-but-set-variable] drivers/net/ethernet/qlogic/qede/qede_ethtool.c: In function qede_selftest_receive_traffic: drivers/net/ethernet/qlogic/qede/qede_ethtool.c:1569:6: warning: variable hw_comp_cons set but not used [-Wunused-but-set-variable] After removing 'hw_comp_cons',the memory barrier 'rmb()' and its comments become useless, so remove them as well. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zheng Zengkai <zhengzengkai@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/kcm')
0 files changed, 0 insertions, 0 deletions