git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72f115f
)
checkpatch: fix 'return is not a function' square bracket handling
author
Andy Whitcroft
<apw@canonical.com>
Tue, 10 Jan 2012 23:10:08 +0000
(15:10 -0800)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 11 Jan 2012 00:30:51 +0000
(16:30 -0800)
We are incorrectly matching square brackets '[' and ']' leading to false
positives on more complex functions as below:
return (dt3155_fbuffer[m]->ready_head -
dt3155_fbuffer[m]->ready_len +
dt3155_fbuffer[m]->nbuffers)%
(dt3155_fbuffer[m]->nbuffers);
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl
patch
|
blob
|
history
diff --cc
scripts/checkpatch.pl
Simple merge