Linux SCSI subsystem development
 help / color / mirror / Atom feed
* [PATCH] [SCSI] bfa: Remove self-assignment code
@ 2025-09-04  9:35 liuqiangneo
  2025-09-10  2:58 ` Martin K. Petersen
  0 siblings, 1 reply; 2+ messages in thread
From: liuqiangneo @ 2025-09-04  9:35 UTC (permalink / raw)
  To: anil.gurumurthy, sudarsana.kalluru, James.Bottomley,
	martin.petersen
  Cc: linux-scsi, linux-kernel, Qiang Liu

From: Qiang Liu <liuqiang@kylinos.cn>

The variable num_cqs is of type u8 and does not require be16_to_cpu
conversion, so the redundant  code is removed.

Signed-off-by: Qiang Liu <liuqiang@kylinos.cn>
---
 drivers/scsi/bfa/bfa_core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/scsi/bfa/bfa_core.c b/drivers/scsi/bfa/bfa_core.c
index a99a101b95ef..2559df8baa05 100644
--- a/drivers/scsi/bfa/bfa_core.c
+++ b/drivers/scsi/bfa/bfa_core.c
@@ -1282,7 +1282,6 @@ bfa_iocfc_cfgrsp(struct bfa_s *bfa)
 	struct bfi_iocfc_cfgrsp_s	*cfgrsp	 = iocfc->cfgrsp;
 	struct bfa_iocfc_fwcfg_s	*fwcfg	 = &cfgrsp->fwcfg;
 
-	fwcfg->num_cqs	      = fwcfg->num_cqs;
 	fwcfg->num_ioim_reqs  = be16_to_cpu(fwcfg->num_ioim_reqs);
 	fwcfg->num_fwtio_reqs = be16_to_cpu(fwcfg->num_fwtio_reqs);
 	fwcfg->num_tskim_reqs = be16_to_cpu(fwcfg->num_tskim_reqs);
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] [SCSI] bfa: Remove self-assignment code
  2025-09-04  9:35 [PATCH] [SCSI] bfa: Remove self-assignment code liuqiangneo
@ 2025-09-10  2:58 ` Martin K. Petersen
  0 siblings, 0 replies; 2+ messages in thread
From: Martin K. Petersen @ 2025-09-10  2:58 UTC (permalink / raw)
  To: liuqiangneo
  Cc: anil.gurumurthy, sudarsana.kalluru, James.Bottomley,
	martin.petersen, linux-scsi, linux-kernel, Qiang Liu


> The variable num_cqs is of type u8 and does not require be16_to_cpu
> conversion, so the redundant  code is removed.

Applied to 6.18/scsi-staging, thanks!

-- 
Martin K. Petersen

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-09-10  2:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-04  9:35 [PATCH] [SCSI] bfa: Remove self-assignment code liuqiangneo
2025-09-10  2:58 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox