]> git.proxmox.com Git - qemu-server.git/commitdiff
followup: minor cleanup/error message spelling
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 9 Dec 2019 10:29:26 +0000 (11:29 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 9 Dec 2019 10:30:14 +0000 (11:30 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/QemuServer.pm

index 6267cae09538413f2b014c8a80d94e9c508e5da3..5e086df3691a9e9116e8825216f765186b6ea948 100644 (file)
@@ -2247,9 +2247,7 @@ sub parse_hostpci {
     delete $res->{host};
     foreach my $id (@idlist) {
        my $devs = PVE::SysFSTools::lspci($id);
-       if (!scalar(@$devs)) {
-           die "no pci device found for '$id'\n";
-       }
+       die "no PCI device found for '$id'\n" if !scalar(@$devs);
        push @{$res->{pciid}}, @$devs;
     }
     return $res;