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>
This commit is contained in:
parent
c436b41a99
commit
cf17ff2678
@ -780,13 +780,11 @@ static void
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user