mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
2adb8187e5
commit
996aade998
|
@ -1544,12 +1544,6 @@ static int hns3_nic_set_features(struct net_device *netdev,
|
|||
return ret;
|
||||
}
|
||||
|
||||
if ((changed & NETIF_F_HW_VLAN_CTAG_FILTER) &&
|
||||
h->ae_algo->ops->enable_vlan_filter) {
|
||||
enable = !!(features & NETIF_F_HW_VLAN_CTAG_FILTER);
|
||||
h->ae_algo->ops->enable_vlan_filter(h, enable);
|
||||
}
|
||||
|
||||
if ((changed & NETIF_F_HW_VLAN_CTAG_RX) &&
|
||||
h->ae_algo->ops->enable_hw_strip_rxvtag) {
|
||||
enable = !!(features & NETIF_F_HW_VLAN_CTAG_RX);
|
||||
|
|
Loading…
Reference in New Issue