From: Zhen Lei Date: Mon, 10 May 2021 12:06:35 +0000 (+0800) Subject: IB/hfi1: Delete an unneeded bool conversion X-Git-Tag: accepted/tizen/unified/20230118.172025~6935^2~189 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=620ccaaa46d1fa9e6d15d78deaa37a4228772592;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Jason Gunthorpe --- diff --git a/drivers/infiniband/hw/hfi1/tid_rdma.c b/drivers/infiniband/hw/hfi1/tid_rdma.c index 0b1f9e4..233ea48 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; }