]> 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)
commit87ec9d9b81b6eb1100d7d53c4522aa3c3d2764f4
tree8cc25f335929cce2fc6ba48257e52784eea63fb6
parentdc17d4192d707bbe695559d037cc9a41e2717242
checkpatch: fix $Float creation of match variables

Commit 1e382c16eed5 ("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