]> git.proxmox.com Git - qemu-server.git/commitdiff
qemu_machine_pxe: remove unused parameter
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 13 Aug 2019 13:19:08 +0000 (15:19 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Aug 2019 13:35:01 +0000 (15:35 +0200)
no caller used that parameter, ever

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/QemuServer.pm

index 220af7391426c66af62b28833594380d5d373eb1..9f5bf563513d712ec28c70f1c995293916c4c546 100644 (file)
@@ -7178,9 +7178,9 @@ sub qemu_machine_feature_enabled {
 }
 
 sub qemu_machine_pxe {
-    my ($vmid, $conf, $machine) = @_;
+    my ($vmid, $conf) = @_;
 
-    $machine =  PVE::QemuServer::get_current_qemu_machine($vmid) if !$machine;
+    my $machine =  PVE::QemuServer::get_current_qemu_machine($vmid);
 
     if ($conf->{machine} && $conf->{machine} =~ m/\.pxe$/) {
        $machine .= '.pxe';