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
orang tua a854b1e890
melakukan 8c9959689b
2 mengubah file dengan 2 tambahan dan 4 penghapusan

Melihat File

@@ -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;
}

Melihat 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);