remove a superfluous condition

This is only reached if the $line from which $virtdev
originates matches, and the part in $virtdev can never be
false then.
This commit is contained in:
Wolfgang Bumiller 2016-02-10 14:28:19 +01:00 committed by Dietmar Maurer
parent d9faf79016
commit c0f7406e93

View 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);