Skip to contentSkip to conversation

scsi: message: fusion: remove useless variable

PATCH Applied Jiapeng Chong 2 participants 2 messages Apr 12, 2021 – Apr 16, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: message: fusion: remove useless variable

Fix the following gcc warning:

drivers/message/fusion/mptsas.c:783:14: warning: variable ‘vtarget’ set but not used [-Wunused-but-set-variable].

---
 drivers/message/fusion/mptsas.c | 2 --
 1 file changed, 2 deletions(-)
drivers/message/fusion/mptsas.c +0 -2
index 5eb0b33..c54e823 100644
@@ -780,13 +780,11 @@ static inline MPT_ADAPTER *rphy_to_ioc(struct sas_rphy *rphy)
 mptsas_add_device_component_starget(MPT_ADAPTER *ioc,
 	struct scsi_target *starget)
 {
-	VirtTarget	*vtarget;
 	struct sas_rphy	*rphy;
 	struct mptsas_phyinfo	*phy_info = NULL;
 	struct mptsas_enclosure	enclosure_info;
 
 	rphy = dev_to_rphy(starget->dev.parent);
-	vtarget = starget->hostdata;
 	phy_info = mptsas_find_phyinfo_by_sas_address(ioc,
 			rphy->identify.sas_address);
 	if (!phy_info)
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 4 lines · Jiapeng Chong

Fix the following gcc warning:

drivers/message/fusion/mptsas.c:783:14: warning: variable ‘vtarget’ set but not used [-Wunused-but-set-variable].

Applied to 5.13/scsi-queue, thanks!

[1/1] scsi: message: fusion: remove useless variable

      https://git.kernel.org/mkp/scsi/c/cf17ff267880
Signature · 1 line
Martin K. Petersen	Oracle Linux Engineering