checkpatch: fix $Float creation of match variables
authorJoe Perches <[email protected]>
Mon, 4 Feb 2013 22:28:51 +0000 (14:28 -0800)
committerLinus Torvalds <[email protected]>
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 <[email protected]>
Cc: Andy Whitcroft <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/checkpatch.pl