From: Amir Vadai Date: Tue, 25 Feb 2014 16:17:52 +0000 (+0200) Subject: net/mlx4_en: Fix bad use of dev_id X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ca9f9f703950e5cb300526549b4f1b0a6605a5c5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git net/mlx4_en: Fix bad use of dev_id dev_id should be set for multiple netdev's sharing the same MAC, which is not the case here. Signed-off-by: Amir Vadai Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c index caa488a286f0..2c0823bf3e05 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c @@ -2341,7 +2341,6 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port, netif_set_real_num_rx_queues(dev, prof->rx_ring_num); SET_NETDEV_DEV(dev, &mdev->dev->pdev->dev); - dev->dev_id = port - 1; dev->dev_port = port - 1; /*