[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20240516120504.1694-1-wangdeming@inspur.com>
Date: Thu, 16 May 2024 08:05:04 -0400
From: Deming Wang <wangdeming@...pur.com>
To: <jejb@...ux.ibm.com>, <martin.petersen@...cle.com>,
<MPT-FusionLinux.pdl@...adcom.com>, <linux-scsi@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
CC: Deming Wang <wangdeming@...pur.com>
Subject: [PATCH] scsi: mpt3sas: use pcie_device replace ret
Use pcie_device replace the 'ret' may be better in the function
of mpt3sas_get_pdev_from_target.
Signed-off-by: Deming Wang <wangdeming@...pur.com>
---
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
Powered by blists - more mailing lists