Skip to content

Commit

Permalink
RDMA/rxe: Change the is_user member of struct rxe_cq to bool
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Xiao Yang authored and Jason Gunthorpe committed Oct 6, 2021
1 parent 1cf2ce8 commit 609bb8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions drivers/infiniband/sw/rxe/rxe_cq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion drivers/infiniband/sw/rxe/rxe_verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 609bb8c

Please sign in to comment.