]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: add an error test for no space before comma
authorJoe Perches <joe@perches.com>
Wed, 10 Dec 2014 23:51:32 +0000 (15:51 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:11 +0000 (17:41 -0800)
commit9c4881c70382094306d34c479985688498d53848
tree9209e3eb909d3b9aab1ab762fee4270e5da17b3e
parenteab14157c0401545e6c7c8dd2ef1424040654207
checkpatch: add an error test for no space before comma

Using code like:

    int foo , bar;

is not preferred to:

    int foo, bar;

so emit an error on this style.

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