]> git.proxmox.com Git - qemu-server.git/blobdiff - PVE/QemuServer/PCI.pm
tree wide cleanups
[qemu-server.git] / PVE / QemuServer / PCI.pm
index 789dd223854c2b1324a51479876f85e2d5f447a4..92adb90d4a2ea756f0a96c0d89c6ceea10d0c032 100644 (file)
@@ -363,6 +363,7 @@ sub print_hostpci_devices {
     my $gpu_passthrough = 0;
     my $legacy_igd = 0;
 
+    my $pciaddr;
     for (my $i = 0; $i < $MAX_HOSTPCI_DEVICES; $i++)  {
        my $id = "hostpci$i";
        my $d = parse_hostpci($conf->{$id});
@@ -388,7 +389,7 @@ sub print_hostpci_devices {
        }
 
        my $pcidevices = $d->{pciid};
-       my $multifunction = 1 if @$pcidevices > 1;
+       my $multifunction = @$pcidevices > 1;
 
        if ($d->{'legacy-igd'}) {
            die "only one device can be assigned in legacy-igd mode\n"