]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: don't warn on blank lines before/after braces as often
authorJoe Perches <joe@perches.com>
Wed, 3 Jul 2013 22:05:29 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:44 +0000 (16:07 -0700)
commit40a337c34b8d2a8f0f0390371b56c45a928b7337
tree8a3176a5cc00a3e8173e03b73b8459f21c8cdf3b
parent4bc4f88855e884c631457d89bde94fcf545e72b6
checkpatch: don't warn on blank lines before/after braces as often

Check to make sure the blank lines aren't comment lines like:

  bool foo(bool bar)
  {
/* Don't warn on a leading comment */
return !bar;
/* Don't warn on a trailing comment either */
  }

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