mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
RDMA/irdma: Simplify bool conversion
./drivers/infiniband/hw/irdma/ctrl.c:5792:10-15: WARNING: conversion to bool not needed here. ./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> Link: https://patch.msgid.link/20251204092414.1261795-1-jiapeng.chong@linux.alibaba.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
parent
8f0b4cce44
commit
80351761fa
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user