diff options
author | Joe Perches <joe@perches.com> | 2014-08-07 01:11:10 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-07 03:01:28 +0200 |
commit | bd474ca076af8ac6fa8c5f4167f6024b446a08c8 (patch) | |
tree | 9d4b902291cc808028e9095452dd3b23d1c4bc21 /scripts/checkpatch.pl | |
parent | checkpatch: add fix_insert_line and fix_delete_line helpers (diff) | |
download | linux-bd474ca076af8ac6fa8c5f4167f6024b446a08c8.tar.xz linux-bd474ca076af8ac6fa8c5f4167f6024b446a08c8.zip |
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/checkpatch.pl')
-rwxr-xr-x | scripts/checkpatch.pl | 12 |
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 { } 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 { |