From: Julia Lawall <[email protected]>
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 <[email protected]>
---
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;
- }
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]