checkpatch: simplify and consolidate "missing space after" checks
authorAndy Whitcroft <apw@canonical.com>
Tue, 26 Oct 2010 21:23:15 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:20 +0000 (16:52 -0700)
commit0c73b4eb7a825a5aff16d8a9701f6c28056de058
treebbc5cec929a9406ad53c6d5df36c980259e60546
parent8cf6de7145943caa38c56c61cd83b17687afd900
checkpatch: simplify and consolidate "missing space after" checks

Commonise the code for missing spaces after struct, union, and enum such
that they share the same code.  Ensure we cover all the common cases in
each case.  Check against the sanitised line to ensure we do not report on
comments and strings.

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