]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
RDMA/core: Make ib_destroy_cq() void
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 20 May 2019 06:54:21 +0000 (09:54 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 21 May 2019 18:50:53 +0000 (15:50 -0300)
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>
include/rdma/ib_verbs.h

index 0742095355f28c7bbf994ab137cc113f0aa76760..ec6446864b08e9847b35c5e68b6ac46018b52e26 100644 (file)
@@ -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);
 }
 
 /**