]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
get_maintainer: use a default "unknown" S: status/role
authorJoe Perches <joe@perches.com>
Fri, 23 Mar 2012 22:01:56 +0000 (15:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 23 Mar 2012 23:58:32 +0000 (16:58 -0700)
When an "S:" status line is unavailable, use a default "unknown" role.

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/get_maintainer.pl

index f32a04c4c5bc1c56a88e0f7fba3cb521aa997e52..f5b1f3aa5bd21f56886928914479144990b1c8b5 100755 (executable)
@@ -931,7 +931,7 @@ sub get_maintainer_role {
     my $start = find_starting_index($index);
     my $end = find_ending_index($index);
 
-    my $role;
+    my $role = "unknown";
     my $subsystem = $typevalue[$start];
     if (length($subsystem) > 20) {
        $subsystem = substr($subsystem, 0, 17);