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