Skip to content

Commit

Permalink
libata: remove unused rc in ata_eh_handle_port_resume
Browse files Browse the repository at this point in the history
Remove unused variable ‘rc’.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information
Kefeng Wang authored and Tejun Heo committed Jul 15, 2017
1 parent 7cfdfdc commit ae86793
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/ata/libata-eh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit ae86793

Please sign in to comment.