ARM: integrator: Drop unnecessary continue
Subsystems (2)
PATCH 1/1 ARM: integrator: Drop unnecessary continue
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 <[email protected]>
Acked-by Julia Lawall <[email protected]>
--- arch/arm/mach-integrator/impd1.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
arch/arm/mach-integrator/impd1.c +1 -3
@@ -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 ;
Signature · 1 line
1.9.1