Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kefeng Wang and committed by
Tejun Heo
ae867937 7cfdfdc8

+1 -2
+1 -2
drivers/ata/libata-eh.c
··· 4175 4175 struct ata_link *link; 4176 4176 struct ata_device *dev; 4177 4177 unsigned long flags; 4178 - int rc = 0; 4179 4178 4180 4179 /* are we resuming? */ 4181 4180 spin_lock_irqsave(ap->lock, flags); ··· 4201 4202 ata_acpi_set_state(ap, ap->pm_mesg); 4202 4203 4203 4204 if (ap->ops->port_resume) 4204 - rc = ap->ops->port_resume(ap); 4205 + ap->ops->port_resume(ap); 4205 4206 4206 4207 /* tell ACPI that we're resuming */ 4207 4208 ata_acpi_on_resume(ap);