diff mbox series

scsi: mpt3sas: use pcie_device replace ret

Message ID 20240516120504.1694-1-wangdeming@inspur.com
State New
Headers show
Series scsi: mpt3sas: use pcie_device replace ret | expand

Commit Message

Deming Wang May 16, 2024, 12:05 p.m. UTC
Use pcie_device replace the 'ret' may be better in the function
of mpt3sas_get_pdev_from_target.

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

Patch

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;
 }