* [PATCH] ARM: integrator: Drop unnecessary continue
@ 2014-08-13 9:18 Himangi Saraogi
0 siblings, 0 replies; only message in thread
From: Himangi Saraogi @ 2014-08-13 9:18 UTC (permalink / raw)
To: linux-arm-kernel
Continue is not needed at the bottom of a loop.
The Coccinelle semantic patch implementing this change is:
@@
@@
for (...;...;...) {
...
if (...) {
...
- continue;
}
}
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
---
arch/arm/mach-integrator/impd1.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/arm/mach-integrator/impd1.c b/arch/arm/mach-integrator/impd1.c
index 3ce8807..c4eb8c9 100644
--- a/arch/arm/mach-integrator/impd1.c
+++ b/arch/arm/mach-integrator/impd1.c
@@ -376,10 +376,8 @@ static int __init_refok impd1_probe(struct lm_device *dev)
irq1, irq2,
idev->platform_data, idev->id,
&dev->resource);
- if (IS_ERR(d)) {
+ if (IS_ERR(d))
dev_err(&dev->dev, "unable to register device: %ld\n", PTR_ERR(d));
- continue;
- }
}
return 0;
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-13 9:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-13 9:18 [PATCH] ARM: integrator: Drop unnecessary continue Himangi Saraogi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox