Skip to content

Commit

Permalink
checkpatch: use the correct indentation for which()
Browse files Browse the repository at this point in the history
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: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Joe Perches authored and Linus Torvalds committed Aug 7, 2014
1 parent f2d7e4d commit bd474ca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -710,15 +710,15 @@ sub format_email {
}

sub which {
my ($bin) = @_;
my ($bin) = @_;

foreach my $path (split(/:/, $ENV{PATH})) {
if (-e "$path/$bin") {
return "$path/$bin";
foreach my $path (split(/:/, $ENV{PATH})) {
if (-e "$path/$bin") {
return "$path/$bin";
}
}
}

return "";
return "";
}

sub which_conf {
Expand Down

0 comments on commit bd474ca

Please sign in to comment.