libata: remove unused rc in ata_eh_handle_port_resume
authorKefeng Wang <wangkefeng.wang@huawei.com>
Thu, 13 Jul 2017 08:07:58 +0000 (16:07 +0800)
committerTejun Heo <tj@kernel.org>
Sat, 15 Jul 2017 11:04:25 +0000 (07:04 -0400)
Remove unused variable ‘rc’.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/libata-eh.c

index b70bcf6d2914b6a82967fee346f5865b5c3b66b8..7d79d206938aa8961e58195f7134c31dc9a69a70 100644 (file)
@@ -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);