Message ID | 20190521070507.16686-1-kamalheib1@gmail.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | deee3c7e499108b0575ee0d71b786da627a7cdee |
Delegated to: | Jason Gunthorpe |
Headers | show |
Series | [for-next] RDMA/core: Return void from ib_device_check_mandatory() | expand |
On Tue, May 21, 2019 at 10:05:07AM +0300, Kamal Heib wrote: > The return value from ib_device_check_mandatory() is always 0 - change > it to be void. > > Signed-off-by: Kamal Heib <kamalheib1@gmail.com> > --- > drivers/infiniband/core/device.c | 9 ++------- > 1 file changed, 2 insertions(+), 7 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
On Tue, May 21, 2019 at 10:05:07AM +0300, Kamal Heib wrote: > The return value from ib_device_check_mandatory() is always 0 - change > it to be void. > > Signed-off-by: Kamal Heib <kamalheib1@gmail.com> > Reviewed-by: Leon Romanovsky <leonro@mellanox.com> > --- > drivers/infiniband/core/device.c | 9 ++------- > 1 file changed, 2 insertions(+), 7 deletions(-) Applied to for-next thanks Jason
diff --git a/drivers/infiniband/core/device.c b/drivers/infiniband/core/device.c index 78dc07c6ac4b..afb3f5946796 100644 --- a/drivers/infiniband/core/device.c +++ b/drivers/infiniband/core/device.c @@ -270,7 +270,7 @@ struct ib_port_data_rcu { struct ib_port_data pdata[]; }; -static int ib_device_check_mandatory(struct ib_device *device) +static void ib_device_check_mandatory(struct ib_device *device) { #define IB_MANDATORY_FUNC(x) { offsetof(struct ib_device_ops, x), #x } static const struct { @@ -305,8 +305,6 @@ static int ib_device_check_mandatory(struct ib_device *device) break; } } - - return 0; } /* @@ -1175,10 +1173,7 @@ static int setup_device(struct ib_device *device) int ret; setup_dma_device(device); - - ret = ib_device_check_mandatory(device); - if (ret) - return ret; + ib_device_check_mandatory(device); ret = setup_port_data(device); if (ret) {
The return value from ib_device_check_mandatory() is always 0 - change it to be void. Signed-off-by: Kamal Heib <kamalheib1@gmail.com> --- drivers/infiniband/core/device.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)