summaryrefslogtreecommitdiff
path: root/drivers/ata/libata-eh.c
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2017-07-13 11:07:58 +0300
committerTejun Heo <tj@kernel.org>2017-07-15 14:04:25 +0300
commitae867937009397649db2284d32ff7c9a1a2c3665 (patch)
treee236ff662de37bd13d88eb46ebf97129a67a5053 /drivers/ata/libata-eh.c
parent7cfdfdc82a467c78af9132cb9c98e84415df34bc (diff)
downloadlinux-ae867937009397649db2284d32ff7c9a1a2c3665.tar.xz
libata: remove unused rc in ata_eh_handle_port_resume
Remove unused variable ‘rc’. Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/ata/libata-eh.c')
-rw-r--r--drivers/ata/libata-eh.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index b70bcf6d2914..7d79d206938a 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);