]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: check for common memset parameter issues against statments
authorAndy Whitcroft <apw@canonical.com>
Thu, 8 Dec 2011 04:42:21 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Dec 2011 05:51:57 +0000 (16:51 +1100)
commitc65dabeea359372c8ec94239ccc069e314174ada
tree88b71b5a5ebbce96bd616eed709d30ef72544de6
parent0a6846f1862623c1b03eb471f705aca038db377c
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