checkpatch: check for common memset parameter issues against statments
authorAndy Whitcroft <[email protected]>
Tue, 10 Jan 2012 23:09:57 +0000 (15:09 -0800)
committerLinus Torvalds <[email protected]>
Wed, 11 Jan 2012 00:30:50 +0000 (16:30 -0800)
commit554e165cf32610ec9596a183fa1b54a5707fc3cb
tree027354f186b71c033929a5ecf8df80f131c9ce7b
parentf74bd1942e04a0cedd1e9c8b331141e75add49c0
checkpatch: check for common memset parameter issues against statments

Move the memset checks over to work against the statement.  Also add
checks for 0 and 1 used as lengths.  Generally these indicate badly
ordered parameters.

Signed-off-by: Andy Whitcroft <[email protected]>
Cc: Joe Perches <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/checkpatch.pl