diff options
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 { | |||
710 | } | 710 | } |
711 | 711 | ||
712 | sub which { | 712 | sub 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 | ||
724 | sub which_conf { | 724 | sub which_conf { |