From: Joe Perches Date: Wed, 6 Aug 2014 23:11:10 +0000 (-0700) Subject: checkpatch: use the correct indentation for which() X-Git-Tag: v4.9.8~5947^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd474ca076af8ac6fa8c5f4167f6024b446a08c8;p=platform%2Fkernel%2Flinux-rpi3.git 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: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 7c29069..569ba31 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -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 {