]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: handle do without braces if we have enough context
authorAndy Whitcroft <apw@shadowen.org>
Thu, 16 Oct 2008 05:02:30 +0000 (22:02 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:37 +0000 (11:21 -0700)
commit697f6ade6ea126baa6dcc060d06037a2d4e49b1e
tree77dda2b9e7890d95452cfe3255d8d83187be579a
parent3d9059a5d0dfb61b8a63281b13a0593b716f5f70
checkpatch: handle do without braces if we have enough context

If we have sufficient context detect and handle do without braces ({).
Else these incorrectly trigger a trailing statements error for the
associated while.

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