diff options
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/en_netdev.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_netdev.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c index 467ae5824875..25e6480479df 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_netdev.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_netdev.c | |||
@@ -1047,10 +1047,8 @@ int mlx4_en_init_netdev(struct mlx4_en_dev *mdev, int port, | |||
1047 | 1047 | ||
1048 | dev = alloc_etherdev_mqs(sizeof(struct mlx4_en_priv), | 1048 | dev = alloc_etherdev_mqs(sizeof(struct mlx4_en_priv), |
1049 | prof->tx_ring_num, prof->rx_ring_num); | 1049 | prof->tx_ring_num, prof->rx_ring_num); |
1050 | if (dev == NULL) { | 1050 | if (dev == NULL) |
1051 | mlx4_err(mdev, "Net device allocation failed\n"); | ||
1052 | return -ENOMEM; | 1051 | return -ENOMEM; |
1053 | } | ||
1054 | 1052 | ||
1055 | SET_NETDEV_DEV(dev, &mdev->dev->pdev->dev); | 1053 | SET_NETDEV_DEV(dev, &mdev->dev->pdev->dev); |
1056 | dev->dev_id = port - 1; | 1054 | dev->dev_id = port - 1; |