]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: optimise statement scanner when mid-statement
authorAndy Whitcroft <apw@canonical.com>
Fri, 16 Dec 2011 04:50:18 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 19 Dec 2011 07:19:41 +0000 (18:19 +1100)
commit4d4fb275407c8f96e27a028ce13e66f0d68be076
treec20ceb1a47f54de09964f9e483eac4add182d1bf
parent354ecafb93d660ecf0bcdb6122fddaa604c40a0b
checkpatch: optimise statement scanner when mid-statement

In the middle of a long definition or similar, there is no possibility of
finding a smaller sub-statement.  Optimise this case by skipping statement
aquirey where there are no starts of statement (open brace '{' or
semi-colon ';').  We are likely to scan slightly more than needed still
but this is safest.

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