Commit deee3c7e authored by Kamal Heib's avatar Kamal Heib Committed by Jason Gunthorpe

RDMA/core: Return void from ib_device_check_mandatory()

The return value from ib_device_check_mandatory() is always 0 - change it
to be void.
Signed-off-by: default avatarKamal Heib <kamalheib1@gmail.com>
Reviewed-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 8ce0048f
...@@ -270,7 +270,7 @@ struct ib_port_data_rcu { ...@@ -270,7 +270,7 @@ struct ib_port_data_rcu {
struct ib_port_data pdata[]; 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 } #define IB_MANDATORY_FUNC(x) { offsetof(struct ib_device_ops, x), #x }
static const struct { static const struct {
...@@ -305,8 +305,6 @@ static int ib_device_check_mandatory(struct ib_device *device) ...@@ -305,8 +305,6 @@ static int ib_device_check_mandatory(struct ib_device *device)
break; break;
} }
} }
return 0;
} }
/* /*
...@@ -1175,10 +1173,7 @@ static int setup_device(struct ib_device *device) ...@@ -1175,10 +1173,7 @@ static int setup_device(struct ib_device *device)
int ret; int ret;
setup_dma_device(device); setup_dma_device(device);
ib_device_check_mandatory(device);
ret = ib_device_check_mandatory(device);
if (ret)
return ret;
ret = setup_port_data(device); ret = setup_port_data(device);
if (ret) { if (ret) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment