checkpatch: improve "no space after cast" test
authorJoe Perches <joe@perches.com>
Wed, 6 Aug 2014 23:10:52 +0000 (16:10 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:28 +0000 (18:01 -0700)
commitf27c95db1176b41c6c87d9d3480d15efbca8f3ff
treecee0d9465e848c59d8b290b70a9b16e39d5d3b4c
parent1574a29f8e769998fe3e55eb6030dc61e3d09ccd
checkpatch: improve "no space after cast" test

This --strict test previously worked only for what appeared to be cast
to pointer types.

Make it work for all casts.

Also, there's no reason to show the previous line for this type of
message, so don't.

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