]> 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>
Thu, 8 Dec 2011 04:42:22 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 9 Dec 2011 04:52:44 +0000 (15:52 +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{