aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/roce_gid_mgmt.c
diff options
context:
space:
mode:
authorDaniel Jurgens <danielj@mellanox.com>2018-01-04 17:25:33 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-01-08 11:42:21 -0700
commit908d6460b3d81dd2dca9e9e8fc7fa19b5a1e4d99 (patch)
tree3285116c68040f7398c1a90f4f3224ff0f139dbb /drivers/infiniband/core/roce_gid_mgmt.c
parentnet/mlx5: Set software owner ID during init HCA (diff)
downloadlinux-dev-908d6460b3d81dd2dca9e9e8fc7fa19b5a1e4d99.tar.xz
linux-dev-908d6460b3d81dd2dca9e9e8fc7fa19b5a1e4d99.zip
IB/core: Change roce_rescan_device to return void
It always returns 0. Change return type to void. Signed-off-by: Daniel Jurgens <danielj@mellanox.com> Reviewed-by: Parav Pandit <parav@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/roce_gid_mgmt.c')
-rw-r--r--drivers/infiniband/core/roce_gid_mgmt.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/core/roce_gid_mgmt.c b/drivers/infiniband/core/roce_gid_mgmt.c
index 90e3889b7fbe..ebfe45739ca7 100644
--- a/drivers/infiniband/core/roce_gid_mgmt.c
+++ b/drivers/infiniband/core/roce_gid_mgmt.c
@@ -412,12 +412,10 @@ static void enum_all_gids_of_dev_cb(struct ib_device *ib_dev,
/* This function will rescan all of the network devices in the system
* and add their gids, as needed, to the relevant RoCE devices. */
-int roce_rescan_device(struct ib_device *ib_dev)
+void roce_rescan_device(struct ib_device *ib_dev)
{
ib_enum_roce_netdev(ib_dev, pass_all_filter, NULL,
enum_all_gids_of_dev_cb, NULL);
-
- return 0;
}
static void callback_for_addr_gid_device_scan(struct ib_device *device,