* [PATCH 1/4] arch/ia64: Drop unnecessary continue
@ 2007-11-14 8:13 Julia Lawall
0 siblings, 0 replies; only message in thread
From: Julia Lawall @ 2007-11-14 8:13 UTC (permalink / raw)
To: tony.luck, linux-kernel, kernel-janitors
From: Julia Lawall <julia@diku.dk>
Continue is not needed at the bottom of a loop.
The semantic patch implementing this change is as follows:
@@
statement S;
@@
for (...;...;...) {
...
if (...)
- {
S
- continue;
- }
}
Signed-off-by: Julia Lawall <julia@diku.dk>
---
diff -u -p -b -B a/arch/ia64/sn/kernel/xpnet.c b/arch/ia64/sn/kernel/xpnet.c
--- a/arch/ia64/sn/kernel/xpnet.c 2007-10-22 11:24:57.000000000 +0200
+++ b/arch/ia64/sn/kernel/xpnet.c 2007-11-13 21:56:42.000000000 +0100
@@ -588,10 +588,8 @@ xpnet_dev_hard_start_xmit(struct sk_buff
ret = xpc_send_notify(dest_partid, XPC_NET_CHANNEL, msg,
xpnet_send_completed, queued_msg);
- if (unlikely(ret != xpcSuccess)) {
+ if (unlikely(ret != xpcSuccess))
atomic_dec(&queued_msg->use_count);
- continue;
- }
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-14 8:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-14 8:13 [PATCH 1/4] arch/ia64: Drop unnecessary continue Julia Lawall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®