From: Joe Perches Date: Fri, 23 Mar 2012 22:01:56 +0000 (-0700) Subject: get_maintainer: use a default "unknown" S: status/role X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=0ede27450716dda82474023d6726ab50f2751adb;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git get_maintainer: use a default "unknown" S: status/role When an "S:" status line is unavailable, use a default "unknown" role. Signed-off-by: Joe Perches Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index f32a04c4c5bc..f5b1f3aa5bd2 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -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);