]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
checkpatch: optimise statement scanner when mid-statement
authorAndy Whitcroft <apw@canonical.com>
Thu, 8 Dec 2011 04:42:23 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Dec 2011 06:43:20 +0000 (17:43 +1100)
commit465224ce73b499da0ba0b97a675160d91877b700
treef582d863d092070816a82aa0ee141bde9fc1ecd3
parente55163d2a73eaeb3956ccd95ed056aefb31de86a
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