From 6726a2e0376f9d1315a62fe387732f1e4e0a33da Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Mon, 12 Oct 2020 17:34:58 +0200 Subject: [PATCH] LIO: drop unused statements minor cleanup of left-over/unused statements. Signed-off-by: Stoiko Ivanov --- PVE/Storage/LunCmd/LIO.pm | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/PVE/Storage/LunCmd/LIO.pm b/PVE/Storage/LunCmd/LIO.pm index f9e7143..b98edc2 100644 --- a/PVE/Storage/LunCmd/LIO.pm +++ b/PVE/Storage/LunCmd/LIO.pm @@ -142,8 +142,6 @@ my $parser = sub { die "Target Portal Group has invalid value, must contain string 'tpg' and a suffix number, eg 'tpg17'\n"; } - my $base = get_base; - my $config = $get_config->($scfg); my $jsonconfig = JSON->new->utf8->decode($config); @@ -266,7 +264,6 @@ my $list_view = sub { # determines, if the given object exists on the portal my $list_lun = sub { my ($scfg, $timeout, $method, @params) = @_; - my $name = undef; my $object = $params[0]; my $volname = $extract_volname->($scfg, $object); @@ -278,7 +275,7 @@ my $list_lun = sub { } } - return $name; + return undef; }; # adds a new LUN to the target