diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2021-05-10 15:06:35 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-05-11 22:56:55 +0300 |
commit | 620ccaaa46d1fa9e6d15d78deaa37a4228772592 (patch) | |
tree | da209be4045a9b7ad9ad416fcdd82c4f55c9897f /drivers/infiniband/hw/hfi1/tid_rdma.c | |
parent | 7c6c2f5337b7fc77eed5b14636ef959c5873efdd (diff) | |
download | linux-620ccaaa46d1fa9e6d15d78deaa37a4228772592.tar.xz |
IB/hfi1: Delete an unneeded bool conversion
The result of an expression consisting of a single relational operator is
already of the bool type and does not need to be evaluated explicitly.
No functional change.
Link: https://lore.kernel.org/r/20210510120635.3636-1-thunder.leizhen@huawei.com
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1/tid_rdma.c')
-rw-r--r-- | drivers/infiniband/hw/hfi1/tid_rdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/hfi1/tid_rdma.c b/drivers/infiniband/hw/hfi1/tid_rdma.c index 0b1f9e4d038b..233ea48b72c8 100644 --- a/drivers/infiniband/hw/hfi1/tid_rdma.c +++ b/drivers/infiniband/hw/hfi1/tid_rdma.c @@ -1115,7 +1115,7 @@ static u32 kern_find_pages(struct tid_rdma_flow *flow, } flow->length = flow->req->seg_len - length; - *last = req->isge == ss->num_sge ? false : true; + *last = req->isge != ss->num_sge; return i; } |