Skip to content

Commit 504628a

Browse files
committed
RDMA: Remove unnecessary ternary operators
JIRA: https://issues.redhat.com/browse/RHEL-52273 Conflicts: Include only the qedr hunk. commit 272bba1 Author: Ruan Jinjie <ruanjinjie@huawei.com> Date: Mon Jul 31 16:51:18 2023 +0800 RDMA: Remove unnecessary ternary operators There are a little ternary operators, the true or false judgment of which is unnecessary in C language semantics. Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> Link: https://lore.kernel.org/r/20230731085118.394443-1-ruanjinjie@huawei.com Signed-off-by: Leon Romanovsky <leon@kernel.org> static void ocrdma_store_gsi_qp_cq(struct ocrdma_dev *dev, Signed-off-by: Kamal Heib <kheib@redhat.com>
1 parent 005c162 commit 504628a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/qedr/verbs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ static void qedr_set_common_qp_params(struct qedr_dev *dev,
13581358

13591359
qp->prev_wqe_size = 0;
13601360

1361-
qp->signaled = (attrs->sq_sig_type == IB_SIGNAL_ALL_WR) ? true : false;
1361+
qp->signaled = attrs->sq_sig_type == IB_SIGNAL_ALL_WR;
13621362
qp->dev = dev;
13631363
if (qedr_qp_has_sq(qp)) {
13641364
qedr_reset_qp_hwq_info(&qp->sq);

0 commit comments

Comments
 (0)