IB/hfi1: Delete an unneeded bool conversion
authorZhen Lei <thunder.leizhen@huawei.com>
Mon, 10 May 2021 12:06:35 +0000 (20:06 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 11 May 2021 19:56:55 +0000 (16:56 -0300)
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>
drivers/infiniband/hw/hfi1/tid_rdma.c

index 0b1f9e4..233ea48 100644 (file)
@@ -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;
 }