IB/rxe: make rxe_unregister_device void

Since the function rxe_unregister_device always returns 0, it is changed
to void.

Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
This commit is contained in:
Zhu Yanjun 2018-11-03 08:13:19 -04:00 committed by Jason Gunthorpe
parent a854b1e890
commit 8c9959689b
2 changed files with 2 additions and 4 deletions

View File

@ -1287,11 +1287,9 @@ int rxe_register_device(struct rxe_dev *rxe)
return err;
}
int rxe_unregister_device(struct rxe_dev *rxe)
void rxe_unregister_device(struct rxe_dev *rxe)
{
struct ib_device *dev = &rxe->ib_dev;
ib_unregister_device(dev);
return 0;
}

View File

@ -467,7 +467,7 @@ static inline struct rxe_mem *to_rmw(struct ib_mw *mw)
}
int rxe_register_device(struct rxe_dev *rxe);
int rxe_unregister_device(struct rxe_dev *rxe);
void rxe_unregister_device(struct rxe_dev *rxe);
void rxe_mc_cleanup(struct rxe_pool_entry *arg);