diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2011-12-16 10:48:53 +0000 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2011-12-16 11:10:47 +0000 |
commit | 667d510dabd5644c2191b3c828c6d50d8417c9cc (patch) | |
tree | 6da514687c3312b5d2564ca0dc0abf27d7f4a364 /tools | |
parent | 09571d62bc1e32eeeede9a321213a04503967f85 (diff) | |
download | riscv-openocd-667d510dabd5644c2191b3c828c6d50d8417c9cc.zip riscv-openocd-667d510dabd5644c2191b3c828c6d50d8417c9cc.tar.gz riscv-openocd-667d510dabd5644c2191b3c828c6d50d8417c9cc.tar.bz2 |
checkpatch: fix false indent trigger
we have changed the indent to 4 to match OpenOCD coding style.
Change-Id: I4870a3410eb20fc2f6df6a3e5891d4d4e598131a
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/285
Tested-by: jenkins
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/scripts/checkpatch.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl index 703fa06..50fffc1 100755 --- a/tools/scripts/checkpatch.pl +++ b/tools/scripts/checkpatch.pl @@ -1965,7 +1965,7 @@ sub process { #print "line<$line> prevline<$prevline> indent<$indent> sindent<$sindent> check<$check> continuation<$continuation> s<$s> cond_lines<$cond_lines> stat_real<$stat_real> stat<$stat>\n"; - if ($check && (($sindent % 8) != 0 || + if ($check && (($sindent % 4) != 0 || ($sindent <= $indent && $s ne ''))) { WARN("SUSPECT_CODE_INDENT", "suspect code indent for conditional statements ($indent, $sindent)\n" . $herecurr . "$stat_real\n"); |