]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch.pl: fix CAST detection
authorFlorian Mickler <florian@mickler.org>
Thu, 13 Jan 2011 00:59:58 +0000 (16:59 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 16:03:11 +0000 (08:03 -0800)
commit9032b959f69d64c90cf6e7556de7ffdca3da2a0b
treea497964957d6dd30baa52ffe7a175737599ebca0
parent930f32bab84541766a6ad747b03fc8b277720fbd
checkpatch.pl: fix CAST detection

We should only claim that something is a cast if we did not encouter a
token before, that did set av_pending.

This fixes the operator * in the line below to be detected as binary (vs
unary).

kmalloc(sizeof(struct alphatrack_ocmd) * true_size, GFP_KERNEL);

Reported-by: Audun Hoem <audun.hoem@gmail.com>
Signed-off-by: Florian Mickler <florian@mickler.org>
Cc: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl