]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
checkpatch: check for common memset parameter issues against statments
authorAndy Whitcroft <apw@canonical.com>
Fri, 16 Dec 2011 04:50:17 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 20 Dec 2011 07:43:50 +0000 (18:43 +1100)
commit9ca2d36a41e128af13f06e4b1771650f05a72965
tree01ba0b933f7e334e4724f4060fd51c647f8876fd
parent2b39a8a7c405f6f236afe8b20b8ddbd21a08ca81
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 <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl