aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-08-06 19:11:10 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-06 21:01:28 -0400
commitbd474ca076af8ac6fa8c5f4167f6024b446a08c8 (patch)
tree9d4b902291cc808028e9095452dd3b23d1c4bc21 /scripts
parentf2d7e4d4398092d14fb039cb4d38e502d3f019ee (diff)
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 <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 7c290693b8af..569ba315823e 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -710,15 +710,15 @@ sub format_email {
710} 710}
711 711
712sub which { 712sub which {
713 my ($bin) = @_; 713 my ($bin) = @_;
714 714
715 foreach my $path (split(/:/, $ENV{PATH})) { 715 foreach my $path (split(/:/, $ENV{PATH})) {
716 if (-e "$path/$bin") { 716 if (-e "$path/$bin") {
717 return "$path/$bin"; 717 return "$path/$bin";
718 }
718 } 719 }
719 }
720 720
721 return ""; 721 return "";
722} 722}
723 723
724sub which_conf { 724sub which_conf {