Revision e589728b

b/scripts/checkpatch.pl
2206 2206
			ERROR("space prohibited before that close parenthesis ')'\n" . $herecurr);
2207 2207
		}
2208 2208

  
2209
#goto labels aren't indented, allow a single space however
2210
		if ($line=~/^.\s+[A-Za-z\d_]+:(?![0-9]+)/ and
2211
		   !($line=~/^. [A-Za-z\d_]+:/) and !($line=~/^.\s+default:/)) {
2212
			WARN("labels should not be indented\n" . $herecurr);
2213
		}
2214

  
2215 2209
# Return is not a function.
2216 2210
		if (defined($stat) && $stat =~ /^.\s*return(\s*)(\(.*);/s) {
2217 2211
			my $spacing = $1;

Also available in: Unified diff