diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2017-07-13 04:07:58 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2017-07-15 07:04:25 -0400 |
commit | ae867937009397649db2284d32ff7c9a1a2c3665 (patch) | |
tree | e236ff662de37bd13d88eb46ebf97129a67a5053 | |
parent | 7cfdfdc82a467c78af9132cb9c98e84415df34bc (diff) |
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>
-rw-r--r-- | drivers/ata/libata-eh.c | 3 |
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) | |||
4175 | struct ata_link *link; | 4175 | struct ata_link *link; |
4176 | struct ata_device *dev; | 4176 | struct ata_device *dev; |
4177 | unsigned long flags; | 4177 | unsigned long flags; |
4178 | int rc = 0; | ||
4179 | 4178 | ||
4180 | /* are we resuming? */ | 4179 | /* are we resuming? */ |
4181 | spin_lock_irqsave(ap->lock, flags); | 4180 | spin_lock_irqsave(ap->lock, flags); |
@@ -4202,7 +4201,7 @@ static void ata_eh_handle_port_resume(struct ata_port *ap) | |||
4202 | ata_acpi_set_state(ap, ap->pm_mesg); | 4201 | ata_acpi_set_state(ap, ap->pm_mesg); |
4203 | 4202 | ||
4204 | if (ap->ops->port_resume) | 4203 | if (ap->ops->port_resume) |
4205 | rc = ap->ops->port_resume(ap); | 4204 | ap->ops->port_resume(ap); |
4206 | 4205 | ||
4207 | /* tell ACPI that we're resuming */ | 4206 | /* tell ACPI that we're resuming */ |
4208 | ata_acpi_on_resume(ap); | 4207 | ata_acpi_on_resume(ap); |