[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220801060821.52386-1-mailmesebin00@gmail.com>
Date: Mon, 1 Aug 2022 11:38:21 +0530
From: Sebin Sebastian <mailmesebin00@...il.com>
To: unlisted-recipients:; (no To-header on input)
Cc: mailmesebin00@...il.com, Don Brace <don.brace@...rochip.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Mike McGowen <mike.mcgowen@...rochip.com>,
Kumar Meiyappan <Kumar.Meiyappan@...rochip.com>,
Scott Teel <scott.teel@...rochip.com>,
storagedev@...rochip.com, linux-scsi@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH -next] scsi: smartpqi: Overwriting previous value
Fixes coverity warning 'Unused value'. Assigning value 256 in
shost->max_lun but that stored value is overwritten before it can be
used.
Fixes: 904f2bfda65e0 (Add driver support for multi-LUN devices)
Signed-off-by: Sebin Sebastian <mailmesebin00@...il.com>
---
drivers/scsi/smartpqi/smartpqi_init.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c
index 7a8c2c75acba..5a9fd52c6e7c 100644
--- a/drivers/scsi/smartpqi/smartpqi_init.c
+++ b/drivers/scsi/smartpqi/smartpqi_init.c
@@ -7405,7 +7405,6 @@ static int pqi_register_scsi(struct pqi_ctrl_info *ctrl_info)
shost->max_channel = PQI_MAX_BUS;
shost->max_cmd_len = MAX_COMMAND_SIZE;
shost->max_lun = PQI_MAX_LUNS_PER_DEVICE;
- shost->max_lun = ~0;
shost->max_id = ~0;
shost->max_sectors = ctrl_info->max_sectors;
shost->can_queue = ctrl_info->scsi_ml_can_queue;
--
2.34.1
Powered by blists - more mailing lists