]> 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>
Mon, 19 Dec 2011 07:19:40 +0000 (18:19 +1100)
commita252bf84f77f7093006b4696c9c3a597728a7aea
treef2ca6bf3d81c5365a9ad579f946c11b64c04e26a
parente98f1386674a221420f7ed7a252b747a6879f8a2
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