projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ed940d
)
checkpatch: Update alignment check
author
Joe Perches
<
[email protected]
>
Mon, 30 Jul 2012 21:41:16 +0000
(14:41 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 31 Jul 2012 00:25:17 +0000
(17:25 -0700)
Parenthesis alignment doesn't correctly check an existing line after an
inserted or modified line with an open parenthesis.
Fix it.
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
patch
|
blob
|
history
diff --git
a/scripts/checkpatch.pl
b/scripts/checkpatch.pl
index e5bd60ff48e3d553ef3921256123519df7b812b8..630319acb8264aed1c9bb628f89dd795ba05801f 100755
(executable)
--- a/
scripts/checkpatch.pl
+++ b/
scripts/checkpatch.pl
@@
-1848,8
+1848,8
@@
sub process {
my $pos = pos_last_openparen($rest);
if ($pos >= 0) {
- $line =~ /^
\+
([ \t]*)/;
- my $newindent = $
1
;
+ $line =~ /^
(\+| )
([ \t]*)/;
+ my $newindent = $
2
;
my $goodtabindent = $oldindent .
"\t" x ($pos / 8) .