RDMA/rxe: Change the is_user member of struct rxe_cq to bool
authorXiao Yang <yangx.jy@fujitsu.com>
Thu, 30 Sep 2021 09:48:11 +0000 (17:48 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 6 Oct 2021 22:45:30 +0000 (19:45 -0300)
Make the is_user members of struct rxe_qp/rxe_cq has the same type.

Link: https://lore.kernel.org/r/20210930094813.226888-3-yangx.jy@fujitsu.com
Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_cq.c
drivers/infiniband/sw/rxe/rxe_verbs.h

index 4eedaa0..6848426 100644 (file)
@@ -77,8 +77,7 @@ int rxe_cq_from_init(struct rxe_dev *rxe, struct rxe_cq *cq, int cqe,
                return err;
        }
 
-       if (uresp)
-               cq->is_user = 1;
+       cq->is_user = uresp;
 
        cq->is_dying = false;
 
index 962bb24..098fde6 100644 (file)
@@ -64,7 +64,7 @@ struct rxe_cq {
        spinlock_t              cq_lock;
        u8                      notify;
        bool                    is_dying;
-       int                     is_user;
+       bool                    is_user;
        struct tasklet_struct   comp_task;
 };