]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: check for common memset parameter issues against statments
authorAndy Whitcroft <apw@canonical.com>
Tue, 10 Jan 2012 23:09:57 +0000 (15:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Jan 2012 00:30:50 +0000 (16:30 -0800)
commitcf611a76a02f82c59e1745bc19d781dc3c583c7f
tree027354f186b71c033929a5ecf8df80f131c9ce7b
parentc21fc82d5e347d1292e452940a4bd6680d564cdf
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl