]> git.baikalelectronics.ru Git - kernel.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)
commitd5422cc6a8a0a63ab1d9bec2eb88056f9f4131a9
tree8cc25f335929cce2fc6ba48257e52784eea63fb6
parent133890c837ba4a623379091218172b769b383ed7
checkpatch: fix $Float creation of match variables

Commit 18b57e8b7292 ("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