summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorAndy Whitcroft2012-01-11 00:10:08 +0100
committerLinus Torvalds2012-01-11 01:30:51 +0100
commite01886ada28741d7cb2cfb3224e9caccfbc1a2d5 (patch)
treeba401dddad6fffc2dc079e1449f20c2091195a41 /usr
parentcheckpatch: complex macro should allow the empty do while loop (diff)
downloadkernel-qcow2-linux-e01886ada28741d7cb2cfb3224e9caccfbc1a2d5.tar.gz
kernel-qcow2-linux-e01886ada28741d7cb2cfb3224e9caccfbc1a2d5.tar.xz
kernel-qcow2-linux-e01886ada28741d7cb2cfb3224e9caccfbc1a2d5.zip
checkpatch: fix 'return is not a function' square bracket handling
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>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions