Commit bd474ca0 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds

checkpatch: use the correct indentation for which()

I copied the which subroutine from get_maintainer.pl.

Unfortunately, get_maintainer uses a 4 space indentation so use the
proper tab indentation instead.
Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f2d7e4d4
...@@ -710,15 +710,15 @@ sub format_email { ...@@ -710,15 +710,15 @@ sub format_email {
} }
sub which { sub which {
my ($bin) = @_; my ($bin) = @_;
foreach my $path (split(/:/, $ENV{PATH})) { foreach my $path (split(/:/, $ENV{PATH})) {
if (-e "$path/$bin") { if (-e "$path/$bin") {
return "$path/$bin"; return "$path/$bin";
}
} }
}
return ""; return "";
} }
sub which_conf { sub which_conf {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment