From 97edd11f6b22cccbe6916532de9244fa43f606c5 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 7 Feb 2023 15:55:55 +0100 Subject: [PATCH] cifs: small line bloat reduction Signed-off-by: Thomas Lamprecht --- PVE/Storage/CIFSPlugin.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/PVE/Storage/CIFSPlugin.pm b/PVE/Storage/CIFSPlugin.pm index 37db882..6e20f4b 100644 --- a/PVE/Storage/CIFSPlugin.pm +++ b/PVE/Storage/CIFSPlugin.pm @@ -16,9 +16,7 @@ use base qw(PVE::Storage::Plugin); sub cifs_is_mounted : prototype($$) { my ($scfg, $mountdata) = @_; - my $mountpoint = $scfg->{path}; - my $server = $scfg->{server}; - my $share = $scfg->{share}; + my ($mountpoint, $server, $share) = $scfg->@{'path', 'server', 'share'}; my $subdir = $scfg->{subdir} // "/"; $server = "[$server]" if Net::IP::ip_is_ipv6($server); @@ -71,9 +69,7 @@ sub get_cred_file { sub cifs_mount : prototype($$$$$) { my ($scfg, $storeid, $smbver, $user, $domain) = @_; - my $mountpoint = $scfg->{path}; - my $server = $scfg->{server}; - my $share = $scfg->{share}; + my ($mountpoint, $server, $share) = $scfg->@{'path', 'server', 'share'}; my $subdir = $scfg->{subdir} // "/"; $server = "[$server]" if Net::IP::ip_is_ipv6($server);