]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
checkpatch-improve-memset-and-min-max-with-cast-checking-fix
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 16 Dec 2011 04:50:17 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Dec 2011 06:01:24 +0000 (17:01 +1100)
fix per Andy

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

index 35b54c3bff41a7f193575b9bf74dfdf6feed3931..4c53d6f67339bcef861c54f64b39af10c7c41406 100755 (executable)
@@ -227,7 +227,7 @@ our $Inline = qr{inline|__always_inline|noinline};
 our $Member    = qr{->$Ident|\.$Ident|\[[^]]*\]};
 our $Lval      = qr{$Ident(?:$Member)*};
 
-our $Constant  = qr{(?i:[0-9]+|0x[0-9a-f]+)[ul]*};
+our $Constant  = qr{(?i:(?:[0-9]+|0x[0-9a-f]+)[ul]*)};
 our $Assignment        = qr{(?:\*\=|/=|%=|\+=|-=|<<=|>>=|&=|\^=|\|=|=)};
 our $Compare    = qr{<=|>=|==|!=|<|>};
 our $Operators = qr{