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:
parent
a854b1e890
commit
8c9959689b
@ -1287,11 +1287,9 @@ err1:
|
||||
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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user