From: himangi774@gmail.com (Himangi Saraogi)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: integrator: Drop unnecessary continue
Date: Wed, 13 Aug 2014 14:48:04 +0530 [thread overview]
Message-ID: <20140813091804.GA3043@himangi-Dell> (raw)
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
reply other threads:[~2014-08-13 9:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140813091804.GA3043@himangi-Dell \
--to=himangi774@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox