]> git.proxmox.com Git - pve-storage.git/commitdiff
LIO: drop unused statements
authorStoiko Ivanov <s.ivanov@proxmox.com>
Mon, 12 Oct 2020 15:34:58 +0000 (17:34 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 13 Oct 2020 09:11:05 +0000 (11:11 +0200)
minor cleanup of left-over/unused statements.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
PVE/Storage/LunCmd/LIO.pm

index f9e7143d1c30dde88fa9c02e8315e4288078be96..b98edc283a0fdf4d431daf043e685f5f5f325331 100644 (file)
@@ -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