scsi: message: fusion: Remove unused local variable 'vtarget'
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Mon, 12 Apr 2021 05:59:06 +0000 (13:59 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Apr 2021 05:39:12 +0000 (01:39 -0400)
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>
drivers/message/fusion/mptsas.c

index 1857869..e0a65a3 100644 (file)
@@ -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)