]> git.kernelconcepts.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>
Tue, 13 Dec 2011 06:43:19 +0000 (17:43 +1100)
commit0c3e50b66e8d7ffecca60ef08cb3811957701afd
treee6197c5c3ec7966828fd1d503c482f56dbe7226c
parent76a340255976459004494c7177a29a3773e047d6
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