checkpatch: improve k.alloc with multiplication and sizeof test
authorJoe Perches <joe@perches.com>
Mon, 8 May 2017 22:55:57 +0000 (15:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 May 2017 00:15:11 +0000 (17:15 -0700)
commit1b4a2ed4c8773524cc7890c4cd57d58b39c049eb
tree626671fa831a57cbf9f55653eba2284fe5343c45
parente882dbfc248cf28d6afd6fc6d8db8be58a824158
checkpatch: improve k.alloc with multiplication and sizeof test

Find multi-line uses of k.alloc by using the $stat variable and not the
$line variable.  This can still --fix only the single line variant
though.

Link: http://lkml.kernel.org/r/3f4b23d37cd4c7d8628eefc25afe83ba8fb3ab55.1493167076.git.joe@perches.com
Signed-off-by: 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