Signed-off-by: Prabhakar Pujeri <prabhakar.pujeri@xxxxxxxxx> --- drivers/scsi/ncr53c8xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.45.1