Commit 8c995968 authored by Zhu Yanjun's avatar Zhu Yanjun Committed by Jason Gunthorpe

IB/rxe: make rxe_unregister_device void

Since the function rxe_unregister_device always returns 0, it is changed
to void.
Signed-off-by: default avatarZhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent a854b1e8
...@@ -1287,11 +1287,9 @@ int rxe_register_device(struct rxe_dev *rxe) ...@@ -1287,11 +1287,9 @@ int rxe_register_device(struct rxe_dev *rxe)
return err; 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; struct ib_device *dev = &rxe->ib_dev;
ib_unregister_device(dev); ib_unregister_device(dev);
return 0;
} }
...@@ -467,7 +467,7 @@ static inline struct rxe_mem *to_rmw(struct ib_mw *mw) ...@@ -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_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); void rxe_mc_cleanup(struct rxe_pool_entry *arg);
......
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