]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: remove some unused codes in hns3_nic_set_features()
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 30 May 2020 01:08:32 +0000 (09:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2020 00:41:22 +0000 (17:41 -0700)
commit9b5b0c8c51dc68dede9fab7fe46c34f6f5bf931a
tree83af4e26b3413b1b2df7727b85e4527ea7fe0db8
parent164cd6a3b3021573c27f66611746b963faf247ba
net: hns3: remove some unused codes in hns3_nic_set_features()

NETIF_F_HW_VLAN_CTAG_FILTER is not set in netdev->hw_feature for
the HNS3 driver, so the handler of NETIF_F_HW_VLAN_CTAG_FILTER
in hns3_nic_set_features() won't be called, remove it.

Reported-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c