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)
commit2381097b6c9b8621797a717c0b199f780ecaa992
tree9209e3eb909d3b9aab1ab762fee4270e5da17b3e
parent69c953c85c6cca85565ab32e4264b2efb6272e0e
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