Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

'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>

authored by

Christophe JAILLET and committed by
Martin K. Petersen
8c2d0455 c167dd0b

-2
-2
drivers/scsi/hpsa.c
··· 4354 4354 int i, ndevs_to_allocate; 4355 4355 int raid_ctlr_position; 4356 4356 bool physical_device; 4357 - DECLARE_BITMAP(lunzerobits, MAX_EXT_TARGETS); 4358 4357 4359 4358 currentsd = kcalloc(HPSA_MAX_DEVICES, sizeof(*currentsd), GFP_KERNEL); 4360 4359 physdev_list = kzalloc(sizeof(*physdev_list), GFP_KERNEL); ··· 4367 4368 dev_err(&h->pdev->dev, "out of memory\n"); 4368 4369 goto out; 4369 4370 } 4370 - memset(lunzerobits, 0, sizeof(lunzerobits)); 4371 4371 4372 4372 h->drv_req_rescan = 0; /* cancel scheduled rescan - we're doing it. */ 4373 4373