Skip to content

Commit 09765fc

Browse files
IronShenkuba-moo
authored andcommitted
net: amd8111e: remove repeated dev->features assignement
It's repeated with line 1793-1795, and there isn't any other handling for it. So remove it. Signed-off-by: Jian Shen <shenjian15@huawei.com> Link: https://lore.kernel.org/r/20220719142424.4528-1-shenjian15@huawei.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 602ae00 commit 09765fc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/net/ethernet/amd/amd8111e.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1830,9 +1830,6 @@ static int amd8111e_probe_one(struct pci_dev *pdev,
18301830
dev->max_mtu = AMD8111E_MAX_MTU;
18311831
netif_napi_add_weight(dev, &lp->napi, amd8111e_rx_poll, 32);
18321832

1833-
#if AMD8111E_VLAN_TAG_USED
1834-
dev->features |= NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_HW_VLAN_CTAG_RX;
1835-
#endif
18361833
/* Probe the external PHY */
18371834
amd8111e_probe_ext_phy(dev);
18381835

0 commit comments

Comments
 (0)