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

scsi: message: fusion: Remove unused local variable 'vtarget'

Fix the following gcc warning:

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

Link: https://lore.kernel.org/r/1618207146-96542-1-git-send-email-jiapeng.chong@linux.alibaba.com
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Jiapeng Chong and committed by
Martin K. Petersen
cf17ff26 c436b41a

-2
-2
drivers/message/fusion/mptsas.c
··· 780 780 mptsas_add_device_component_starget(MPT_ADAPTER *ioc, 781 781 struct scsi_target *starget) 782 782 { 783 - VirtTarget *vtarget; 784 783 struct sas_rphy *rphy; 785 784 struct mptsas_phyinfo *phy_info = NULL; 786 785 struct mptsas_enclosure enclosure_info; 787 786 788 787 rphy = dev_to_rphy(starget->dev.parent); 789 - vtarget = starget->hostdata; 790 788 phy_info = mptsas_find_phyinfo_by_sas_address(ioc, 791 789 rphy->identify.sas_address); 792 790 if (!phy_info)