* [PATCH -next 1/2] RDMA/irdma: Simplify bool conversion
@ 2025-12-04 9:24 Jiapeng Chong
2025-12-04 9:24 ` [PATCH -next 2/2] " Jiapeng Chong
2025-12-18 14:54 ` [PATCH -next 1/2] " Leon Romanovsky
0 siblings, 2 replies; 3+ messages in thread
From: Jiapeng Chong @ 2025-12-04 9:24 UTC (permalink / raw)
To: krzysztof.czurylo
Cc: tatyana.e.nikolova, jgg, leon, linux-rdma, linux-kernel,
Jiapeng Chong, Abaci Robot
./drivers/infiniband/hw/irdma/ctrl.c:5792:10-15: WARNING: conversion to bool not needed here.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=27521
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
drivers/infiniband/hw/irdma/ctrl.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/infiniband/hw/irdma/ctrl.c b/drivers/infiniband/hw/irdma/ctrl.c
index ce5cf89c463c..081551da763a 100644
--- a/drivers/infiniband/hw/irdma/ctrl.c
+++ b/drivers/infiniband/hw/irdma/ctrl.c
@@ -5788,8 +5788,7 @@ static int cfg_fpm_value_gen_3(struct irdma_sc_dev *dev,
bool is_mrte_loc_mem;
loc_mem_pages = hmc_fpm_misc->loc_mem_pages;
- is_mrte_loc_mem = hmc_fpm_misc->loc_mem_pages == hmc_fpm_misc->max_sds ?
- true : false;
+ is_mrte_loc_mem = hmc_fpm_misc->loc_mem_pages == hmc_fpm_misc->max_sds;
irdma_get_rsrc_mem_config(dev, is_mrte_loc_mem);
mrte_loc = hmc_info->hmc_obj[IRDMA_HMC_IW_MR].mem_loc;
--
2.43.7
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH -next 2/2] RDMA/irdma: Simplify bool conversion
2025-12-04 9:24 [PATCH -next 1/2] RDMA/irdma: Simplify bool conversion Jiapeng Chong
@ 2025-12-04 9:24 ` Jiapeng Chong
2025-12-18 14:54 ` [PATCH -next 1/2] " Leon Romanovsky
1 sibling, 0 replies; 3+ messages in thread
From: Jiapeng Chong @ 2025-12-04 9:24 UTC (permalink / raw)
To: krzysztof.czurylo
Cc: tatyana.e.nikolova, jgg, leon, linux-rdma, linux-kernel,
Jiapeng Chong, Abaci Robot
./drivers/infiniband/hw/irdma/uk.c:1412:6-11: WARNING: conversion to bool not needed here.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=27521
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
drivers/infiniband/hw/irdma/uk.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/infiniband/hw/irdma/uk.c b/drivers/infiniband/hw/irdma/uk.c
index f0846b800913..91669326d464 100644
--- a/drivers/infiniband/hw/irdma/uk.c
+++ b/drivers/infiniband/hw/irdma/uk.c
@@ -1408,8 +1408,7 @@ int irdma_uk_cq_poll_cmpl(struct irdma_cq_uk *cq,
* from SW for all unprocessed WQEs. For GEN3 and beyond
* FW will generate/flush these CQEs so move to the next CQE
*/
- move_cq_head = qp->uk_attrs->hw_rev <= IRDMA_GEN_2 ?
- false : true;
+ move_cq_head = qp->uk_attrs->hw_rev > IRDMA_GEN_2;
}
if (move_cq_head) {
--
2.43.7
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next 1/2] RDMA/irdma: Simplify bool conversion
2025-12-04 9:24 [PATCH -next 1/2] RDMA/irdma: Simplify bool conversion Jiapeng Chong
2025-12-04 9:24 ` [PATCH -next 2/2] " Jiapeng Chong
@ 2025-12-18 14:54 ` Leon Romanovsky
1 sibling, 0 replies; 3+ messages in thread
From: Leon Romanovsky @ 2025-12-18 14:54 UTC (permalink / raw)
To: krzysztof.czurylo, Jiapeng Chong
Cc: tatyana.e.nikolova, jgg, linux-rdma, linux-kernel, Abaci Robot
On Thu, 04 Dec 2025 17:24:13 +0800, Jiapeng Chong wrote:
> ./drivers/infiniband/hw/irdma/ctrl.c:5792:10-15: WARNING: conversion to bool not needed here.
>
>
Applied, thanks!
[1/2] RDMA/irdma: Simplify bool conversion
https://git.kernel.org/rdma/rdma/c/80351761facb63
[2/2] RDMA/irdma: Simplify bool conversion
https://git.kernel.org/rdma/rdma/c/80351761facb63
Best regards,
--
Leon Romanovsky <leon@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-12-18 14:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-04 9:24 [PATCH -next 1/2] RDMA/irdma: Simplify bool conversion Jiapeng Chong
2025-12-04 9:24 ` [PATCH -next 2/2] " Jiapeng Chong
2025-12-18 14:54 ` [PATCH -next 1/2] " Leon Romanovsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®