]> git.karo-electronics.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>
Wed, 21 Dec 2011 06:01:23 +0000 (17:01 +1100)
commit6a2c18d9d483544de40d819d5715508dbad9657b
tree994e93b58167482f3788b7407f88ec2876d2cdd0
parentd717a01eba98b79f19c6b0bac179955e1c83aa9f
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