projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c167dd0
)
scsi: hpsa: Remove an unused variable in hpsa_update_scsi_devices()
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Thu, 9 Dec 2021 21:11:56 +0000
(22:11 +0100)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Tue, 14 Dec 2021 04:34:01 +0000
(23:34 -0500)
'lunzerobits' is unused. Remove it.
This a left over of commit
2d62a33e05d4
("hpsa: eliminate fake lun0
enclosures")
Link:
https://lore.kernel.org/r/9f80ea569867b5f7ae1e0f99d656e5a8bacad34e.1639084205.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hpsa.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/hpsa.c
b/drivers/scsi/hpsa.c
index cdf3328cc065862ba6bfd8c1a536ad41b153ff93..a47bcce3c9c78dc1b4c5d31b18f3672f6dffb962 100644
(file)
--- 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. */