Skip to content

Commit

Permalink
net/mlx5: Remove information print after attempt to load mlx5_ib module
Browse files Browse the repository at this point in the history
Infiniband part of mlx5 driver can be compiled as a module
or as a part of bzImage (compiled in). In the second case,
the call to request_module will return an error -ENOENT.
It will cause to a misleading print "failed request module
on mlx5_ib".

This patch removes this print, In order to comply with mlx4.

Fixes: f66f049 ("net/mlx5_core: Request the mlx5 IB module on driver load")
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
  • Loading branch information
Leon Romanovsky authored and Saeed Mahameed committed Jan 19, 2017
1 parent 4a7c972 commit f82eed4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/ethernet/mellanox/mlx5/core/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1340,9 +1340,7 @@ static int init_one(struct pci_dev *pdev,
goto clean_health;
}

err = request_module_nowait(MLX5_IB_MOD);
if (err)
pr_info("failed request module on %s\n", MLX5_IB_MOD);
request_module_nowait(MLX5_IB_MOD);

err = devlink_register(devlink, &pdev->dev);
if (err)
Expand Down

0 comments on commit f82eed4

Please sign in to comment.