diff options
author | oulijun <oulijun@huawei.com> | 2018-01-30 07:20:43 -0500 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-02-01 17:24:32 -0500 |
commit | c27991198c94e6def78002a70a404f8b309a8d5e (patch) | |
tree | 2303b87c006fb62d2526c5df07b60ac911a9729f | |
parent | e5b898438638084a5bb1f275e038f8af347890b0 (diff) |
RDMA/hns: Remove unnecessary operator
The double not-operator is unncessary when used in a boolean context. This
patch removes them.
Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
-rw-r--r-- | drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index 256fe110107a..fd9592a10ccf 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c | |||
@@ -2123,10 +2123,10 @@ static void set_access_flags(struct hns_roce_qp *hr_qp, | |||
2123 | u8 dest_rd_atomic; | 2123 | u8 dest_rd_atomic; |
2124 | u32 access_flags; | 2124 | u32 access_flags; |
2125 | 2125 | ||
2126 | dest_rd_atomic = !!(attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) ? | 2126 | dest_rd_atomic = (attr_mask & IB_QP_MAX_DEST_RD_ATOMIC) ? |
2127 | attr->max_dest_rd_atomic : hr_qp->resp_depth; | 2127 | attr->max_dest_rd_atomic : hr_qp->resp_depth; |
2128 | 2128 | ||
2129 | access_flags = !!(attr_mask & IB_QP_ACCESS_FLAGS) ? | 2129 | access_flags = (attr_mask & IB_QP_ACCESS_FLAGS) ? |
2130 | attr->qp_access_flags : hr_qp->atomic_rd_en; | 2130 | attr->qp_access_flags : hr_qp->atomic_rd_en; |
2131 | 2131 | ||
2132 | if (!dest_rd_atomic) | 2132 | if (!dest_rd_atomic) |