diff mbox series

scsi: hpsa: Remove an unused variable in 'hpsa_update_scsi_devices()'

Message ID 9f80ea569867b5f7ae1e0f99d656e5a8bacad34e.1639084205.git.christophe.jaillet@wanadoo.fr (mailing list archive)
State Accepted
Headers show
Series scsi: hpsa: Remove an unused variable in 'hpsa_update_scsi_devices()' | expand

Commit Message

Christophe JAILLET Dec. 9, 2021, 9:11 p.m. UTC
'lunzerobits' is unused. Remove it.

This a left over of commit 2d62a33e05d4("hpsa: eliminate fake lun0
enclosures")

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
 drivers/scsi/hpsa.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Martin K. Petersen Dec. 14, 2021, 4:34 a.m. UTC | #1
Christophe,

> 'lunzerobits' is unused. Remove it.

Applied to 5.17/scsi-staging, thanks!
Martin K. Petersen Dec. 17, 2021, 4:04 a.m. UTC | #2
On Thu, 9 Dec 2021 22:11:56 +0100, Christophe JAILLET wrote:

> 'lunzerobits' is unused. Remove it.
> 
> This a left over of commit 2d62a33e05d4("hpsa: eliminate fake lun0
> enclosures")
> 
> 

Applied to 5.17/scsi-queue, thanks!

[1/1] scsi: hpsa: Remove an unused variable in 'hpsa_update_scsi_devices()'
      https://git.kernel.org/mkp/scsi/c/8c2d04551545
diff mbox series

Patch

diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index cdf3328cc065..a47bcce3c9c7 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -4354,7 +4354,6 @@  static void hpsa_update_scsi_devices(struct ctlr_info *h)
 	int i, ndevs_to_allocate;
 	int raid_ctlr_position;
 	bool physical_device;
-	DECLARE_BITMAP(lunzerobits, MAX_EXT_TARGETS);
 
 	currentsd = kcalloc(HPSA_MAX_DEVICES, sizeof(*currentsd), GFP_KERNEL);
 	physdev_list = kzalloc(sizeof(*physdev_list), GFP_KERNEL);
@@ -4368,7 +4367,6 @@  static void hpsa_update_scsi_devices(struct ctlr_info *h)
 		dev_err(&h->pdev->dev, "out of memory\n");
 		goto out;
 	}
-	memset(lunzerobits, 0, sizeof(lunzerobits));
 
 	h->drv_req_rescan = 0; /* cancel scheduled rescan - we're doing it. */