public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libata: remove unused rc in ata_eh_handle_port_resume
@ 2017-07-13  8:07 Kefeng Wang
  2017-07-15 11:04 ` Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: Kefeng Wang @ 2017-07-13  8:07 UTC (permalink / raw)
  To: Tejun Heo, linux-kernel; +Cc: Kefeng Wang

Remove unused variable ‘rc’.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
 drivers/ata/libata-eh.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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);
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] libata: remove unused rc in ata_eh_handle_port_resume
  2017-07-13  8:07 [PATCH] libata: remove unused rc in ata_eh_handle_port_resume Kefeng Wang
@ 2017-07-15 11:04 ` Tejun Heo
  0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2017-07-15 11:04 UTC (permalink / raw)
  To: Kefeng Wang; +Cc: linux-kernel

On Thu, Jul 13, 2017 at 04:07:58PM +0800, Kefeng Wang wrote:
> Remove unused variable ‘rc’.
> 
> Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>

Applied to libata/for-4.13.

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-15 11:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-13  8:07 [PATCH] libata: remove unused rc in ata_eh_handle_port_resume Kefeng Wang
2017-07-15 11:04 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox