]> 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>
Fri, 9 Dec 2011 04:52:44 +0000 (15:52 +1100)
commitfaa1d8aa8b356b67ad0ecbfe73ab4ed7794f6d8e
treeaba79ec223824d5f5c5d1ce8896ebd5f70e069b6
parentd126633608894eda722048183f620a9dbf5d7fca
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