aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_verbs.h
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2019-05-20 09:54:21 +0300
committerJason Gunthorpe <jgg@mellanox.com>2019-05-21 15:50:53 -0300
commit890ac8d97e6722a9e4a66a0bd836d1b028d075fe (patch)
tree0a88ecc32d2c7e329fb81c12071bb347f9f43ec0 /include/rdma/ib_verbs.h
parentRDMA/ipoib: Remove check of destroy CQ (diff)
downloadlinux-dev-890ac8d97e6722a9e4a66a0bd836d1b028d075fe.tar.xz
linux-dev-890ac8d97e6722a9e4a66a0bd836d1b028d075fe.zip
RDMA/core: Make ib_destroy_cq() void
Kernel destroy CQ flows can't fail and the returned value of ib_destroy_cq() is not interested in those flows. Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r--include/rdma/ib_verbs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 0742095355f2..ec6446864b08 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -3858,9 +3858,9 @@ int ib_destroy_cq_user(struct ib_cq *cq, struct ib_udata *udata);
*
* NOTE: for user cq use ib_destroy_cq_user with valid udata!
*/
-static inline int ib_destroy_cq(struct ib_cq *cq)
+static inline void ib_destroy_cq(struct ib_cq *cq)
{
- return ib_destroy_cq_user(cq, NULL);
+ ib_destroy_cq_user(cq, NULL);
}
/**