From: Andy Whitcroft Date: Tue, 10 Jan 2012 23:10:01 +0000 (-0800) Subject: checkpatch: optimise statement scanner when mid-statement X-Git-Tag: v3.3-rc1~113^2~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e469cdc08ac5d84b220f8fb76a090d158d5114f;p=pandora-kernel.git 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 Cc: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed