Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3456342imu; Fri, 30 Nov 2018 00:07:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/XOrxRSEBWCoX+MbvWbwrOqPa/8dYaanJVJCusyjKoiH4xEPMT0Ke3/cAalkrKAfMgaFu8j X-Received: by 2002:a62:8893:: with SMTP id l141mr4621996pfd.1.1543565268296; Fri, 30 Nov 2018 00:07:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543565268; cv=none; d=google.com; s=arc-20160816; b=ko3bZenvqeKjjjwFbxXDOysE16DvUTf5MkpnxT1YB7j3bTtQFOWLdI4iyn9y/meFz+ 25344OX6OlHV8T5LaaYGglJlM7KQ5nYnYIOmPbADTLeO1GB+3gGOWSSFkZAQV3DSBCFh miILGICNJ1/cDxTJprRq4R2LGmx9H2YjXmhLokTKTXKm0yFkI/WYqm+Pwfple6Wz3INd MxzSlg9dQPQYvpQFY0Ar7yBZqCq1l0Oe4+LIgk0Q7BjJoZG2VJ8HLJSDvlYJd3PG6JvU 4EHCeeI23MXmDz6qLcYXUkTZgE4k6uVcRc1JNhiy4EJo9+eU5E05kZ36+hHSUzw6qZCA IABw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=dwWasYbblmzv5qMPY7SBv27bVouuhzX1Xz72u1rPt4k=; b=SSeGKZc86Uj3Xt2DgP8RBNaySPNiiO9Bc8Ub7RqG4QXM8JwO3mpUrCaehq3SNkcuEf 0Na/RK6np9ar9RYt/2GkjrBCUl5Ah7KQ0xpVOOxuC415UlPkdzD73Cx5qsLPTJRmYP80 Bzml5kolQwBmvM3aAFrpbw9NN6FAYTE8/lOOlBHMsi2fwqf04oQyr5JTtvFt16cwdm9n ZDHRAILk75bIZjdSas9dcQeqI1/UHHAr9dB1YKfzeRokkOTv60kKiAziuNxDirHIdH5G dcDAJd/Ubf2tUb508xer3W1f52kUXLYqiO6RI21jxPRQLToSqQ2eaJRet554+XxUlez5 995A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t184si5000170pfb.22.2018.11.30.00.07.33; Fri, 30 Nov 2018 00:07:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727016AbeK3TOL (ORCPT + 99 others); Fri, 30 Nov 2018 14:14:11 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:51828 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726459AbeK3TOK (ORCPT ); Fri, 30 Nov 2018 14:14:10 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 08ABADD8B868F; Fri, 30 Nov 2018 16:05:41 +0800 (CST) Received: from huawei.com (10.175.104.208) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.408.0; Fri, 30 Nov 2018 16:05:38 +0800 From: liujian To: , , , CC: , Subject: [PATCH 1/2] driver: scsi: ufs-qcom: fix returnvar.cocci warning Date: Sat, 1 Dec 2018 02:07:43 +0800 Message-ID: <1543601264-12610-1-git-send-email-liujian56@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.104.208] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unneeded variable used to store return value, detected by the semantic patch returnvar.cocci. Signed-off-by: liujian --- drivers/scsi/ufs/ufs-qcom.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index 3aeadb1..4d5532d 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -543,7 +543,6 @@ static int ufs_qcom_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op) { struct ufs_qcom_host *host = ufshcd_get_variant(hba); struct phy *phy = host->generic_phy; - int ret = 0; if (ufs_qcom_is_link_off(hba)) { /* @@ -569,7 +568,7 @@ static int ufs_qcom_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op) } out: - return ret; + return 0; } static int ufs_qcom_resume(struct ufs_hba *hba, enum ufs_pm_op pm_op) -- 2.7.4