checkpatch: use the correct indentation for which()
authorJoe Perches <joe@perches.com>
Wed, 6 Aug 2014 23:11:10 +0000 (16:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 7 Aug 2014 01:01:28 +0000 (18:01 -0700)
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>
scripts/checkpatch.pl

index 7c290693b8af680d6331f6fdd9c690beba5373e4..569ba315823ec42724d4e58281b20615a55611da 100755 (executable)
@@ -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 {