Skip to contentSkip to conversation

ARM: integrator: Drop unnecessary continue

PATCH New Himangi Saraogi 1 participant 1 message Aug 13, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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;
}
}

---
 arch/arm/mach-integrator/impd1.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/arm/mach-integrator/impd1.c +1 -3
index 3ce8807..c4eb8c9 100644
@@ -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