[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210722173212.GA5685@pc>
Date: Thu, 22 Jul 2021 18:32:12 +0100
From: Salah Triki <salah.triki@...il.com>
To: aacraid@...rosemi.com, "James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
gregkh@...uxfoundation.org
Cc: linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [RESEND] scsi: aacraid: aachba: replace if with max()
Replace if with max() in order to make code more clean.
Signed-off-by: Salah Triki <salah.triki@...il.com>
---
drivers/scsi/aacraid/aachba.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c
index 46b8dffce2dd..330224f08fd3 100644
--- a/drivers/scsi/aacraid/aachba.c
+++ b/drivers/scsi/aacraid/aachba.c
@@ -485,8 +485,8 @@ int aac_get_containers(struct aac_dev *dev)
if (status != -ERESTARTSYS)
aac_fib_free(fibptr);
- if (maximum_num_containers < MAXIMUM_NUM_CONTAINERS)
- maximum_num_containers = MAXIMUM_NUM_CONTAINERS;
+ maximum_num_containers = max(maximum_num_containers, MAXIMUM_NUM_CONTAINERS);
+
if (dev->fsa_dev == NULL ||
dev->maximum_num_containers != maximum_num_containers) {
--
2.25.1
Powered by blists - more mailing lists