]> xenbits.xensource.com Git - people/royger/osstest.git/commitdiff
Osstest/Debian.pm: Remove a spurious `my $kernel'.
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 17 May 2018 18:12:43 +0000 (18:12 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 23 May 2018 16:13:28 +0000 (17:13 +0100)
This variable is not used, and is shadowed by the one which is
initialised a few lines later.  This produces a warning.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Osstest/Debian.pm

index b46d22260320084aa2ef07066afbc828a58068ff..eafc6cd47f203710a549d03040f01e904adecab2 100644 (file)
@@ -1063,7 +1063,6 @@ sub di_special_kernel ($$) {
     my $d_i = di_installer_path($ho);
     my $tp = $ho->{Tftp}{Path};
     foreach my $kp (keys %{ $ho->{Flags} }) {
-        my $kernel;
         # Backwards compatibility
         $kp = "need-kernel-deb-wheezy-backports" if $kp eq "need-kernel-deb-armmp";
         $kp =~ s/need-kernel-deb-$ho->{Suite}-// or next;