From patchwork Thu Jul 13 08:07:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kefeng Wang X-Patchwork-Id: 107573 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp1900733qge; Thu, 13 Jul 2017 01:10:27 -0700 (PDT) X-Received: by 10.84.143.129 with SMTP id 1mr6563632plz.185.1499933426929; Thu, 13 Jul 2017 01:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499933426; cv=none; d=google.com; s=arc-20160816; b=P1F/LujAAHOJcHFWl8xMJeeg7HjEeWsKaFFwBba5n9u5jXXldmuQ88qoGQqy52iwdD Jb7a1XE21oGV9Pa7np7gBiYcFpxrpPkhR/cSIvMoLU4LLczF5OS2Wg4f8JAAGYSt3Z+f fev3IEEAxtqUrW6ZXcC9asszRg6hv/bfYxoIf55M5DqgRjl6Sj36R/cFW/+DsCF2dyIc 9rqtLVDMWxgknlZHijVXoo8IzFmHxpdlahg97vPwTxH5P1Ow6dsKKSY4y81cRk3Brqmq HJ9lO/ZZIpfF52MM94MYJ7qiVCs/KVgiAfwP4hMqkx+s2P8MsMbc8UooZ33kRTkg52ms xxdg== 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:arc-authentication-results; bh=aw82gsktmQFGfCjRESBLF0T9t/XV8R2n+TdE1u13I68=; b=GXkDQCle2vQib0EOnsmQIsthNI8rOzTCmr0EBLkE8PTzlGXCZ8oDR2bOwhz/TlPPtp M4EAVGf1bBc+a+ri9WH0VvL08jS/GRsh71q/6FsjCTk3qaCu/9u9TwAAKrn/43mmJ64E moLNEViCAoKrjOG9JwQMuAG4xmdjwkuJ+xISxBWmZNzwyVaA33PYiT/aTcFOve8fUVFv WUc7Z+2V4OsrQEGs7xiG8qTlX3KCSgvy9MWQ/8bApy+Xh/ZbGXwJDWnWpGZepQECT7MA iqD/Dg57yQjwueR+Yttg0Noo5JAWLPHMj0feNBpEQGKGEWphSnekxd99FmxnIgaJAhGw XcPw== 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 13si4071156plb.270.2017.07.13.01.10.26; Thu, 13 Jul 2017 01:10:26 -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; 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 S1751385AbdGMIJ7 (ORCPT + 25 others); Thu, 13 Jul 2017 04:09:59 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:9848 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751343AbdGMIJ5 (ORCPT ); Thu, 13 Jul 2017 04:09:57 -0400 Received: from 172.30.72.56 (EHLO DGGEML401-HUB.china.huawei.com) ([172.30.72.56]) by dggrg02-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id AQY89390; Thu, 13 Jul 2017 16:09:49 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEML401-HUB.china.huawei.com (10.3.17.32) with Microsoft SMTP Server id 14.3.301.0; Thu, 13 Jul 2017 16:09:37 +0800 From: Kefeng Wang To: Tejun Heo , CC: Kefeng Wang Subject: [PATCH] libata: remove unused rc in ata_eh_handle_port_resume Date: Thu, 13 Jul 2017 16:07:58 +0800 Message-ID: <1499933278-13547-1-git-send-email-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A0B0206.59672ACE.001E, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 64acc71ba8b570867e4f083216d0e9ad Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unused variable ‘rc’. Signed-off-by: Kefeng Wang --- drivers/ata/libata-eh.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 1.8.3.1 diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index b70bcf6..7d79d20 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c @@ -4175,7 +4175,6 @@ static void ata_eh_handle_port_resume(struct ata_port *ap) struct ata_link *link; struct ata_device *dev; unsigned long flags; - int rc = 0; /* are we resuming? */ spin_lock_irqsave(ap->lock, flags); @@ -4202,7 +4201,7 @@ static void ata_eh_handle_port_resume(struct ata_port *ap) ata_acpi_set_state(ap, ap->pm_mesg); if (ap->ops->port_resume) - rc = ap->ops->port_resume(ap); + ap->ops->port_resume(ap); /* tell ACPI that we're resuming */ ata_acpi_on_resume(ap);