]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
checkpatch: fix $Float creation of match variables
authorJoe Perches <joe@perches.com>
Mon, 4 Feb 2013 22:28:51 +0000 (14:28 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 5 Feb 2013 09:38:48 +0000 (20:38 +1100)
commit326b1ffc136d944d403a2b44dc3abace2a4e10fd
tree8cc25f335929cce2fc6ba48257e52784eea63fb6
parent91c777d86752b00bb3a1d8efa3d8f7e1264f38a9
checkpatch: fix $Float creation of match variables

Commit 74349bccedb3 ("checkpatch: add support for floating point
constants") added an unnecessary match variable that caused tests that
used a $Constant or $LvalOrFunc to have one too many matches.

This causes problems with usleep_range, min/max and other extended
tests.

Avoid using match variables in $Float.
Avoid using match variables in $Assignment too.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl