Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp236209lqo; Thu, 16 May 2024 05:06:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU39dQ+m6fYNP7+OIsPuqpn70xXKdVqCjUHXXacPL/1Uw+6/SSHcy5ri3j8HW8hPcTbW6XjzXH6CobiudiB4mZYiG7MOsYpJaNlvbNRJg== X-Google-Smtp-Source: AGHT+IGiI7YRp2QyxYK/NLuNE/D5LIAfNE+RzlzL4C2rhEbtDrykuNyFj9l6fxbLC31DJ4IQtY6J X-Received: by 2002:a50:d7da:0:b0:575:95b:5109 with SMTP id 4fb4d7f45d1cf-575095b517dmr1560458a12.6.1715861204769; Thu, 16 May 2024 05:06:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715861204; cv=pass; d=google.com; s=arc-20160816; b=HRruGQl1k7lDzSJotTJ5hnbO6hlqutjOWumZzLKLV+zfEsrDATuOygc/0uYSz3QdmW zwSEoQ3g3dHSEMGwHBUsIz4/hK53TtM7q/8lHG9IOmDhTWvAaEbcBB79gVGko9zZYAmm 97WBhF52bK+4QmtT4fpaf/9A4MAd/GXNn5rvCXo0OIok1rydtUIkXgviKpBRqsfkTDGB c+6olz5zJ7ObMpOLB7dqhaDqPuBExb6Z2i/olck3BNK7lQs3lvB+B78KgKO/GwYw/yhI yAGAOUbj30kbRIV4JyXid8brgKifZWhwSTHHZe9d5rv5Xz81ctBdQwv+7f2t0OxntGkV ZCWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=abuse-reports-to:tuid:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from; bh=EXviAU50p8GBq/Zd6An2wZdOHHgPcxB36+HjTZhp4Is=; fh=TKTSYX5Nn4ncmeeK6p0JIAs1Hpxn6WBhvRzEPhL6p0I=; b=UQQfWlfGiZVVKx5wLazKElKmwWE5YG50db8M5Cu/pFRHu6JKGFezCK41CkxsvnkcxC JDAhcjgiN9+d2820tLdNjdFAYN2CrCO60iTXMmopi1z0jEaXY0OeP9RlNlNxFXdX95bW qyEd25p3PghVOEaOKD/X/+HmeRfYjJ5HlnA1jAb6+5zQC1I/P3KqQb08jNa+DKHDHEgb 8GqEiVhPDAbNt1KW7f/bPBLzOtvJRki5vqq4cZmkn+T4L3JCiUnYr1/qeQt/sWPINKsa u3hGqJoiQticz5tWRnGxtKAB9W++aBvb8wr/MNyOwBzGa6dleRfaSQmiGILWYHg4+BkQ GXRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=inspur.com); spf=pass (google.com: domain of linux-kernel+bounces-180972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180972-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c3271edsi8542353a12.367.2024.05.16.05.06.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 May 2024 05:06:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=inspur.com); spf=pass (google.com: domain of linux-kernel+bounces-180972-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180972-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7DD0F1F230EE for ; Thu, 16 May 2024 12:06:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0F2514601C; Thu, 16 May 2024 12:06:25 +0000 (UTC) Received: from unicom145.biz-email.net (unicom145.biz-email.net [210.51.26.145]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8B47145FE5; Thu, 16 May 2024 12:06:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.51.26.145 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715861185; cv=none; b=J+sn90QgBKDARM+SPq07nzTQFsm+l4/J+/tUEa0XDdszTs9+wCelPnLxq94qr+UYO1qfpmmEBQaj/0P8kz/aUJ6qva0kuBz9bDUNpH2WgTiDF+iuYUQXsNNybuj218iXNhamcd6TxQDwfGqIKeZPhSAs+40PANlBdygj9lPP/4g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715861185; c=relaxed/simple; bh=ZrkME+u5Uv/8b40EDiD4n2PP4kiAQP1GT7BPu4lgrGw=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=PB4I36Q//lU0ciYDSqyeX2FKrY/PREVxNhTEM/gKhvFc9p3MP9eci8+Uo2UDVFYPcv/RBPr9T+pUF1HvRgRjPyylIezAArXm6FQ7lVmSCfFIjYwmKyVtQBpKgeGpKNKzAWk2SqoezSz/GAcomNQmILUXgjn88UBKAx/xfMvnxPc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com; spf=pass smtp.mailfrom=inspur.com; arc=none smtp.client-ip=210.51.26.145 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=inspur.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=inspur.com Received: from unicom145.biz-email.net by unicom145.biz-email.net ((D)) with ASMTP (SSL) id NJX00017; Thu, 16 May 2024 20:06:17 +0800 Received: from localhost.localdomain (10.94.5.253) by jtjnmail201611.home.langchao.com (10.100.2.11) with Microsoft SMTP Server id 15.1.2507.35; Thu, 16 May 2024 20:06:16 +0800 From: Deming Wang To: , , , , CC: Deming Wang Subject: [PATCH] scsi: mpt3sas: use pcie_device replace ret Date: Thu, 16 May 2024 08:05:04 -0400 Message-ID: <20240516120504.1694-1-wangdeming@inspur.com> X-Mailer: git-send-email 2.31.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain tUid: 2024516200617f8eec022e4bc83d813917b89af661a5d X-Abuse-Reports-To: service@corp-email.com Abuse-Reports-To: service@corp-email.com X-Complaints-To: service@corp-email.com X-Report-Abuse-To: service@corp-email.com Use pcie_device replace the 'ret' may be better in the function of mpt3sas_get_pdev_from_target. Signed-off-by: Deming Wang --- 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