diff options
author | Zhu Yanjun <yanjun.zhu@oracle.com> | 2018-11-03 08:13:19 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-11-08 14:22:54 -0700 |
commit | 8c9959689b203a388e9a78413a6e669049a87bd2 (patch) | |
tree | 9e96af2320e1bcaef8719f5fb13b2fd6f1c39872 /drivers/infiniband/sw/rxe/rxe_verbs.c | |
parent | IB/rxe: move the variable into the function that uses it (diff) | |
download | linux-dev-8c9959689b203a388e9a78413a6e669049a87bd2.tar.xz linux-dev-8c9959689b203a388e9a78413a6e669049a87bd2.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_verbs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_verbs.c b/drivers/infiniband/sw/rxe/rxe_verbs.c index 4eef87c103b2..30817c79ba96 100644 --- a/drivers/infiniband/sw/rxe/rxe_verbs.c +++ b/drivers/infiniband/sw/rxe/rxe_verbs.c @@ -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; } |