IB/core: Make gid_table_reserve_default() return void
authorParav Pandit <parav@mellanox.com>
Wed, 2 May 2018 10:12:55 +0000 (13:12 +0300)
committerDoug Ledford <dledford@redhat.com>
Wed, 9 May 2018 16:08:21 +0000 (12:08 -0400)
commit25a1cd3fe551bfeffc12d6ef1aafb2f2ef5e54f6
tree618aec1266c7ac479b6f2cac0d71386d824e6d97
parent056f9c7f39bf517d58f32797f1eb1465bb6f6ef2
IB/core: Make gid_table_reserve_default() return void

gid_table_reserve_default() always returns zero. Make it return void and
simplify error checking.

rdma_port is already calculated, use that while calling
gid_table_reserve_default() instead of recalculating it.

Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cache.c