diff options
Diffstat (limited to 'drivers/infiniband/hw/mlx4/main.c')
-rw-r--r-- | drivers/infiniband/hw/mlx4/main.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index f9c12e92fdd6..1d1750ef000a 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c | |||
@@ -1888,14 +1888,6 @@ static void *mlx4_ib_add(struct mlx4_dev *dev) | |||
1888 | 1888 | ||
1889 | pr_info_once("%s", mlx4_ib_version); | 1889 | pr_info_once("%s", mlx4_ib_version); |
1890 | 1890 | ||
1891 | mlx4_foreach_non_ib_transport_port(i, dev) | ||
1892 | num_ports++; | ||
1893 | |||
1894 | if (mlx4_is_mfunc(dev) && num_ports) { | ||
1895 | dev_err(&dev->pdev->dev, "RoCE is not supported over SRIOV as yet\n"); | ||
1896 | return NULL; | ||
1897 | } | ||
1898 | |||
1899 | num_ports = 0; | 1891 | num_ports = 0; |
1900 | mlx4_foreach_ib_transport_port(i, dev) | 1892 | mlx4_foreach_ib_transport_port(i, dev) |
1901 | num_ports++; | 1893 | num_ports++; |