]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net/core: remove duplicate statements by do-while loop
authorAkinobu Mita <akinobu.mita@gmail.com>
Wed, 20 Mar 2013 04:08:50 +0000 (15:08 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:34:35 +0000 (16:34 +1100)
commitf950d2338567b708c2a474cc600b220c35d2a5b2
treed847aa4042504a765aa72d3a9e6b5cd296307ee4
parent4d143842a2bcf3a1630a268135192567bda75363
net/core: remove duplicate statements by do-while loop

Remove duplicate statements by using do-while loop instead of while loop.

- A;
- while (e) {
+ do {
A;
- }
+ } while (e);

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
net/core/pktgen.c