Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1401149ybz; Fri, 17 Apr 2020 23:44:53 -0700 (PDT) X-Google-Smtp-Source: APiQypJDNof9fRW9EMP3VdFUNY5Jx/E4oAhz5UUd0QXNpCUv6k5PEajCfw6MdmRgpn3lVX7xCuag X-Received: by 2002:a17:906:130d:: with SMTP id w13mr6413422ejb.253.1587192293364; Fri, 17 Apr 2020 23:44:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587192293; cv=none; d=google.com; s=arc-20160816; b=NcHWyy4HoeJM841Jk7JqrwkYuy410mRYg2iy972GIJgV9ZiNNpuzRGAmSMwV2dULeB 4hHFFMFe3HnAsFBCKUBPo7ycrFyQWV4XcR3Av1O21kEir0SXuOYSoiDprMhMDy9B85UN VpcukproCmSpHBcTCWDb/9gyi15yA5AXKKpULIvWZjTXy6ineBhmEXHPvFAt8i3m/YLM Nmnxct/BpOodmRwq/NLt3W7UeB4ym5ML1e4JSPKazmeg6sfDs5hmsyBbUDNwNCg8ytrt briy09XyI8Ejlcn5dd6KvDUiHD4Wp3Uk+q3pQWsN84FXEXjBlNSHvA8JfAkV/1hxH3BY tLaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=QQ1h8EYLQn9/uq2jdnHfC906icVufcSU4NG8XOyFoYg=; b=UOWgczaXJ3dZml8H9N9S6dj4JbNVK26lQwCP3pCfYyeSD3ya64bV7C5acU0slohFAf DVDYIfbfyjBGNhoBdvZLyiuI9M2Dh5KiShWoMe/2Pa6TKNE23tE6WgO+TqAZ90H65w1p C9YxXM01cL8U1RrwfRbVDi4FnEAHwa6g514Dy5uW4L+24m/TbHKWH/n2LtwmvIVDdf+h cNtWzMN2WZ6ar9pU/KEbwtdXKmbEev1y7X2VVlLtl8gG8BKak1tOIQmgtw/4Ci7N1BUy rdajLBYJD/SpV96KFj4+NJVrx7OuBYz63bkeSc5evOExQMR7r68XiyLEk61uHy/1ehwZ okLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 5si16039526ejx.392.2020.04.17.23.44.30; Fri, 17 Apr 2020 23:44:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725988AbgDRGkM (ORCPT + 99 others); Sat, 18 Apr 2020 02:40:12 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2406 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725843AbgDRGkM (ORCPT ); Sat, 18 Apr 2020 02:40:12 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id D6F06816B32B16D00841; Sat, 18 Apr 2020 14:40:08 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Sat, 18 Apr 2020 14:39:59 +0800 From: Jason Yan To: , , , , , , , , , , CC: Jason Yan , Hulk Robot Subject: [PATCH] scsi: ufs-qcom: remove unneeded variable 'ret' Date: Sat, 18 Apr 2020 15:06:25 +0800 Message-ID: <20200418070625.11756-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: drivers/scsi/ufs/ufs-qcom.c:575:5-8: Unneeded variable: "ret". Return "0" on line 590 Reported-by: Hulk Robot Signed-off-by: Jason Yan --- 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 19aa5c44e0da..701e9184adff 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -572,7 +572,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)) { /* @@ -587,7 +586,7 @@ static int ufs_qcom_suspend(struct ufs_hba *hba, enum ufs_pm_op pm_op) ufs_qcom_disable_lane_clks(host); } - return ret; + return 0; } static int ufs_qcom_resume(struct ufs_hba *hba, enum ufs_pm_op pm_op) -- 2.21.1