kvm_user_version: add explicit return statement

while perl returns the (scalar) result of the last expression
automatically its still nicer to explicitly do so..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-11-03 16:18:00 +01:00
parent 1f91f7b464
commit 8eb73377c1

View File

@ -1235,7 +1235,7 @@ sub kvm_user_version {
my sub extract_version {
my ($machine_type, $version) = @_;
$version = kvm_user_version() if !defined($version);
PVE::QemuServer::Machine::extract_version($machine_type, $version)
return PVE::QemuServer::Machine::extract_version($machine_type, $version)
}
sub kernel_has_vhost_net {