projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c6c2f5
)
IB/hfi1: Delete an unneeded bool conversion
author
Zhen Lei
<thunder.leizhen@huawei.com>
Mon, 10 May 2021 12:06:35 +0000
(20:06 +0800)
committer
Jason 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
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/hfi1/tid_rdma.c
b/drivers/infiniband/hw/hfi1/tid_rdma.c
index 0b1f9e4d038b06c7992ed715ee6a63d23cc626c5..233ea48b72c80c0cf8eb8329db451d4916af9ad7 100644
(file)
--- 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 : tru
e;
+ *last = req->isge
!= ss->num_sg
e;
return i;
}