]> asedeno.scripts.mit.edu Git - linux.git/commit
net: hns3: remove set but not used variable 'qos'
authorYueHaibing <yuehaibing@huawei.com>
Sat, 31 Aug 2019 12:29:11 +0000 (12:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Sep 2019 19:12:59 +0000 (12:12 -0700)
commitb943e03341e69cfd384ceabbb4efc28a82f69e0c
tree14952f3316acbafb7aa0f0d0ed552e9557c28028
parentbdad7529ee4eca42c7034f34d2fe96de121aae34
net: hns3: remove set but not used variable 'qos'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c: In function 'hclge_restore_vlan_table':
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c:8016:18: warning:
 variable 'qos' set but not used [-Wunused-but-set-variable]

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: 70a214903da9 ("net: hns3: reduce the parameters of some functions")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c