Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1686363 > unrolled thread
| Started by | Kefeng Wang <wangkefeng.wang@huawei.com> |
|---|---|
| First post | 2017-07-13 10:20 +0200 |
| Last post | 2017-07-15 13:10 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] libata: remove unused rc in ata_eh_handle_port_resume Kefeng Wang <wangkefeng.wang@huawei.com> - 2017-07-13 10:20 +0200
Re: [PATCH] libata: remove unused rc in ata_eh_handle_port_resume Tejun Heo <tj@kernel.org> - 2017-07-15 13:10 +0200
| From | Kefeng Wang <wangkefeng.wang@huawei.com> |
|---|---|
| Date | 2017-07-13 10:20 +0200 |
| Subject | [PATCH] libata: remove unused rc in ata_eh_handle_port_resume |
| Message-ID | <u2HvP-37W-7@gated-at.bofh.it> |
Remove unused variable ‘rc’. Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> --- drivers/ata/libata-eh.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index b70bcf6..7d79d20 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); -- 1.8.3.1
[toc] | [next] | [standalone]
| From | Tejun Heo <tj@kernel.org> |
|---|---|
| Date | 2017-07-15 13:10 +0200 |
| Message-ID | <u3t7s-JR-31@gated-at.bofh.it> |
| In reply to | #1686363 |
On Thu, Jul 13, 2017 at 04:07:58PM +0800, Kefeng Wang wrote: > Remove unused variable ‘rc’. > > Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Applied to libata/for-4.13. Thanks. -- tejun
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web