Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3979341ybg; Mon, 28 Oct 2019 23:51:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGMi7MIt6VXsb+hnkhLW32IdSqhh7qCKmckjXW8worgqGOkx8WrMemd5eIOynRn8FU1FXi X-Received: by 2002:a05:6402:386:: with SMTP id o6mr24448881edv.148.1572331868538; Mon, 28 Oct 2019 23:51:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572331868; cv=none; d=google.com; s=arc-20160816; b=ZBcdZm6c4iuAHq9KZt4s0rmDeqkAAtnRiuCe3Qe4kxWCB6X3tUqL7fLUK0GSdS4o3A eOeezYi90Ns+nEupxz1u8Jhqd1E/ZCZ9ZGHG6h+CCADE4T2u9JXLqBv2JllsUHRjW6M5 EvqIPa1MSt08HCfzdHCKJVeBwQnuIB2L28nvuJVw5dX0oLGrgqUKy4J+xzfrT1T89Rsn 0EbruXsnGFQgCb6ABbOvyMVD+PkWOiSZ2aZNI2D+GhpYPMiK+qzpLU+Mi0vL4fQ5Q3EB YjhASBa6elI2GHxMyNVTKO74tJaLw667UtWd7n6K1kd6a9rwllFCBtog/AA1hSDLD6AA piig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=jOsPk8O61mge9n7NaaqisDZ0F14LpJepTwa7yUngAe0=; b=SKBork5b7xP9tfQYcX0yu35Zw6/+H2NN/TBNFX0BhIirFlQiAs0wcG18jeVAnNxpDh 11PlKmnv+P1VCM1OItHr+Lhxsjf9avwmoi2KoTEwAdZiSk1qbChUjLpc8cE60KWdi+bb DRIv1Shao5ycwU9VrYZOyJcXnD5VibQtEl4pDA7FBOB+WGU1L7+puLvas7779lJmhCNS 7B5dxPFknXuqqqZR//gs8tFWPcWhW/vD8m8mRIi/2opEliPwL4JReAxZAZHqtO8Mo181 UjLDHpsf6zYML8Z6SAX91aNwKdYoxbJl02M1BJm+Q65T3eB9h5juDs+gRnw7fBQfFuSs XX+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uSUvninV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si7639009ejb.240.2019.10.28.23.50.44; Mon, 28 Oct 2019 23:51:08 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uSUvninV; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388761AbfJ1VCy (ORCPT + 99 others); Mon, 28 Oct 2019 17:02:54 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:44118 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729037AbfJ1VCy (ORCPT ); Mon, 28 Oct 2019 17:02:54 -0400 Received: by mail-pf1-f196.google.com with SMTP id q26so4130860pfn.11; Mon, 28 Oct 2019 14:02:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=jOsPk8O61mge9n7NaaqisDZ0F14LpJepTwa7yUngAe0=; b=uSUvninV+/uL4MGUfbE7yXkdkq2d6KHpOThqfXiI2l0ggHiWTzZjOXRn8iSgAHhOLz Xjck1xLi74AyKGCH6KHqoC3wvUXhponr69K8lmAScP63spwSssiouBnzSwvlNdl4c8rL Y0+VPNTXe+nnr+EAUG2WhU0zZUrEf9SqtBOI7Og8smDM9r9OgxiTT8iUvqiXybtPz953 7yN5NQ6T0+Ckb+VKpRpZkvhUPzB0K1LRp7HO6dsETge8Bc4uqgnq1YHXCXNi6wvpQ314 bScz8tY62gcECXrIJ+X4geBd0BEZgvTVGeFEs4QqEtwqUdUTXq7o4kA7mXqieKE/d3II pEMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=jOsPk8O61mge9n7NaaqisDZ0F14LpJepTwa7yUngAe0=; b=EJORYo+34lmbVk8bw8tacS7hsAoGgNgnWSoExyZAY/JtOeBF5vMuh7mn5KJLDgH1r/ jqjHYTBtiGxBW8vHfxrdepWstwN08LtYgGiZ9cVGBn3d6qLEPyEFyIfhFcOsHI7yYOKS K1YyZPxO90eQPQknzdAbgPSmUDBsG+ocqk2yq9grJspLjV4VqmOr/uLgSw8W52owSvQb MUyeoLfB1wJ9Nj/Y/Sp70wNKQuVra/VFvnvC/9RNYztYQ50scTUKjBHJxT/sz9t9gwv7 kXwXRhz2kSlOjVd0+2FRZo+/ZtG/k/P3noXh1g+jWoq6MMZnmN8qTGuqOsHmFVg6yS/d qapA== X-Gm-Message-State: APjAAAVqwOqgnpY27qXBGSJu6Yy40BdWvoqQvQ/5T3MmL65y8Ekq9baR 93tH1ZHTXEEKX0ExhYoncq8= X-Received: by 2002:a63:c24f:: with SMTP id l15mr2638233pgg.279.1572296573054; Mon, 28 Oct 2019 14:02:53 -0700 (PDT) Received: from saurav ([27.62.167.137]) by smtp.gmail.com with ESMTPSA id x139sm11878979pgx.92.2019.10.28.14.02.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 14:02:52 -0700 (PDT) Date: Tue, 29 Oct 2019 02:32:45 +0530 From: Saurav Girepunje To: agross@kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, pedrom.sousa@synopsys.com, jejb@linux.ibm.com, martin.petersen@oracle.com, linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] scsi: ufs: ufs-qcom.c: remove unneeded variable Message-ID: <20191028210244.GA29784@saurav> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ret variable is not modified in ufs_qcom_suspend(). Signed-off-by: Saurav Girepunje --- 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 a5b71487a206..0ef24cabe1dc 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -530,7 +530,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)) { /* @@ -545,7 +544,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.20.1