]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: if should not continue a preceeding brace
authorAndy Whitcroft <apw@canonical.com>
Thu, 15 Jan 2009 21:51:06 +0000 (13:51 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Jan 2009 00:39:38 +0000 (16:39 -0800)
commit2d8b6f1199d271598ba3677730a48e5b89aa9abd
tree43fbe3e89848a863a857018d8e9e33ce07759bb8
parentdba31c008c93ca8cbcb9c544fc3af25a520391be
checkpatch: if should not continue a preceeding brace

We should not be continuing a braced section with an if, for example:

if (...) {
} if (...) {
}

Detect this and suggest adding a newline.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl