[pve-devel] [PATCH qemu-server 2/2] qemu_machine_pxe: remove unused parameter

Dominik Csapak d.csapak at proxmox.com
Tue Aug 13 15:19:08 CEST 2019


no caller used that parameter, ever

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 PVE/QemuServer.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index 220af73..9f5bf56 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -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';
-- 
2.20.1




More information about the pve-devel mailing list