]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: fix brace style misuses of else and while
authorJoe Perches <joe@perches.com>
Wed, 6 Aug 2014 23:11:14 +0000 (16:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:28 +0000 (18:01 -0700)
commite59089689f957f1035f188796b25926b6a1423ea
tree77d03918dadddfdcf920acd3553745f0631093c3
parentd79ea51d98f432dcf4f6ea37db86d9d6f9b46014
checkpatch: fix brace style misuses of else and while

Add --fix corrections for ELSE_AFTER_BRACE and WHILE_AFTER_BRACE
misuses.

if (x) {
...
}
else {
...
}

is corrected to

if (x) {
...
} else {
...
}

and

do {
...
}
while (x);

is corrected to

do {
...
} while (x);

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl