[PATCH] scsi: mpt3sas: use pcie_device replace ret

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use pcie_device replace the 'ret' may be better in the function
of mpt3sas_get_pdev_from_target.

Signed-off-by: Deming Wang <wangdeming@xxxxxxxxxx>
---
 drivers/scsi/mpt3sas/mpt3sas_scsih.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/scsi/mpt3sas/mpt3sas_scsih.c b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
index 12d08d8ba538..edb7dfffa8e8 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_scsih.c
+++ b/drivers/scsi/mpt3sas/mpt3sas_scsih.c
@@ -700,14 +700,14 @@ static struct _pcie_device *
 mpt3sas_get_pdev_from_target(struct MPT3SAS_ADAPTER *ioc,
 	struct MPT3SAS_TARGET *tgt_priv)
 {
-	struct _pcie_device *ret;
+	struct _pcie_device *pcie_device;
 	unsigned long flags;
 
 	spin_lock_irqsave(&ioc->pcie_device_lock, flags);
-	ret = __mpt3sas_get_pdev_from_target(ioc, tgt_priv);
+	pcie_device = __mpt3sas_get_pdev_from_target(ioc, tgt_priv);
 	spin_unlock_irqrestore(&ioc->pcie_device_lock, flags);
 
-	return ret;
+	return pcie_device;
 }
 
 
-- 
2.31.1





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux