]> git.proxmox.com Git - qemu-server.git/commitdiff
remove a superfluous condition
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 10 Feb 2016 13:28:19 +0000 (14:28 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 10 Feb 2016 16:46:54 +0000 (17:46 +0100)
This is only reached if the $line from which $virtdev
originates matches, and the part in $virtdev can never be
false then.

PVE/QemuServer.pm

index 2180b90b5488625b77f365ce91b728a67411323b..8002512ca00b3aa53e74e19aadc7a03d145ff385 100644 (file)
@@ -5264,7 +5264,7 @@ sub restore_update_config_line {
        my $di = parse_drive($virtdev, $value);
        if (defined($di->{backup}) && !$di->{backup}) {
            print $outfd "#$line";
-       } elsif ($virtdev && $map->{$virtdev}) {
+       } elsif ($map->{$virtdev}) {
            delete $di->{format}; # format can change on restore
            $di->{file} = $map->{$virtdev};
            $value = print_drive($vmid, $di);