diff mbox series

[09/14] scsi: ncr53c8xx: Simplified tag number calculation with max() in ncr_sir_to_redo

Message ID 20240626101342.1440049-10-prabhakar.pujeri@gmail.com (mailing list archive)
State Rejected
Headers show
Series SCSI: Replace ternary operations with min()/max() macros | expand

Commit Message

Prabhakar Pujeri June 26, 2024, 10:13 a.m. UTC
Signed-off-by: Prabhakar Pujeri <prabhakar.pujeri@gmail.com>
---
 drivers/scsi/ncr53c8xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/scsi/ncr53c8xx.c b/drivers/scsi/ncr53c8xx.c
index 35869b4f9329..863139c98cce 100644
--- a/drivers/scsi/ncr53c8xx.c
+++ b/drivers/scsi/ncr53c8xx.c
@@ -6410,7 +6410,7 @@  static void ncr_sir_to_redo(struct ncb *np, int num, struct ccb *cp)
 					"CCBs\n", busy_cnt, disc_cnt);
 		}
 		if (disc_cnt < lp->numtags) {
-			lp->numtags	= disc_cnt > 2 ? disc_cnt : 2;
+			lp->numtags	= max(disc_cnt, 2);
 			lp->num_good	= 0;
 			ncr_setup_tags (np, cmd->device);
 		}