Skip to content

Commit 23ec697

Browse files
Tariq ToukanSaeed Mahameed
authored andcommitted
net/mlx5e: Remove early assignment to netdev->features
The netdev->features is initialized to netdev->hw_features at a later point in the flow. Remove any redundant earlier assignment. Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Reviewed-by: Gal Pressman <gal@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
1 parent b2a62e5 commit 23ec697

File tree

1 file changed

+0
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+0
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5244,7 +5244,6 @@ static void mlx5e_build_nic_netdev(struct net_device *netdev)
52445244

52455245
netdev->gso_partial_features |= NETIF_F_GSO_UDP_L4;
52465246
netdev->hw_features |= NETIF_F_GSO_UDP_L4;
5247-
netdev->features |= NETIF_F_GSO_UDP_L4;
52485247

52495248
mlx5_query_port_fcs(mdev, &fcs_supported, &fcs_enabled);
52505249

0 commit comments

Comments
 (0)