public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] scsi: use min()/min_t()/max() to improve code
@ 2025-08-15 12:16 Qianfeng Rong
  2025-08-15 12:16 ` [PATCH 1/6] scsi: bfa: use min_t() " Qianfeng Rong
                   ` (6 more replies)
  0 siblings, 7 replies; 16+ messages in thread
From: Qianfeng Rong @ 2025-08-15 12:16 UTC (permalink / raw)
  To: Anil Gurumurthy, Sudarsana Kalluru, James E.J. Bottomley,
	Martin K. Petersen, Don Brace, James Smart, Dick Kennedy,
	Kashyap Desai, Sumit Saxena, Shivasharan S, Chandrakanth patil,
	Sathya Prakash Veerichetty, Sreekanth Reddy, Nilesh Javali,
	maintainer:QLOGIC QLA2XXX FC-SCSI DRIVER,
	open list:BROCADE BFA FC SCSI DRIVER, open list,
	open list:HEWLETT-PACKARD SMART ARRAY RAID DRIVER (hpsa),
	open list:MEGARAID SCSI/SAS DRIVERS,
	open list:BROADCOM MPI3 STORAGE CONTROLLER DRIVER
  Cc: Qianfeng Rong

Use min()/min_t()/max() to reduce the code and improve readability.

No functional changes.

Qianfeng Rong (6):
  scsi: bfa: use min_t() to improve code
  scsi: hpsa: use min()/min_t() to improve code
  scsi: lpfc: use min() to improve code
  scsi: megaraid_sas: use max() to improve code
  scsi: mpi3mr: use min() to improve codee
  scsi: qla2xxx: use min() to improve code

 drivers/scsi/bfa/bfa_fcs_rport.c          |  8 +++-----
 drivers/scsi/bfa/bfa_svc.c                |  5 +----
 drivers/scsi/hpsa.c                       | 11 +++--------
 drivers/scsi/lpfc/lpfc_init.c             |  5 +----
 drivers/scsi/lpfc/lpfc_nvme.c             |  8 ++------
 drivers/scsi/megaraid/megaraid_sas_base.c |  5 +----
 drivers/scsi/mpi3mr/mpi3mr_app.c          |  7 ++-----
 drivers/scsi/qla2xxx/qla_init.c           |  9 +++------
 8 files changed, 16 insertions(+), 42 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2025-08-26  2:34 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-15 12:16 [PATCH 0/6] scsi: use min()/min_t()/max() to improve code Qianfeng Rong
2025-08-15 12:16 ` [PATCH 1/6] scsi: bfa: use min_t() " Qianfeng Rong
2025-08-20 12:13   ` David Laight
2025-08-15 12:16 ` [PATCH 2/6] scsi: hpsa: use min()/min_t() " Qianfeng Rong
2025-08-15 19:59   ` Don.Brace
2025-08-20  2:25   ` Martin K. Petersen
2025-08-20 12:02   ` David Laight
2025-08-20 12:50     ` Qianfeng Rong
2025-08-20 17:57       ` David Laight
2025-08-15 12:16 ` [PATCH 3/6] scsi: lpfc: use min() " Qianfeng Rong
2025-08-15 19:55   ` Justin Tee
2025-08-20  2:25   ` Martin K. Petersen
2025-08-15 12:16 ` [PATCH 4/6] scsi: megaraid_sas: use max() " Qianfeng Rong
2025-08-15 12:16 ` [PATCH 5/6] scsi: mpi3mr: use min() " Qianfeng Rong
2025-08-15 12:16 ` [PATCH 6/6] scsi: qla2xxx: " Qianfeng Rong
2025-08-26  2:33 ` (subset) [PATCH 0/6] scsi: use min()/min_t()/max() " 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