]> git.sur5r.net Git - openocd/commitdiff
checkpatch: fix false indent trigger
authorSpencer Oliver <spen@spen-soft.co.uk>
Fri, 16 Dec 2011 10:48:53 +0000 (10:48 +0000)
committerSpencer Oliver <spen@spen-soft.co.uk>
Fri, 16 Dec 2011 11:10:47 +0000 (11:10 +0000)
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
tools/scripts/checkpatch.pl

index 703fa06c6ecf1f6cf4dc96f307d6654fc9e0118d..50fffc175c7ab11ffb0906e1d2b869fab3ee411d 100755 (executable)
@@ -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");