[pve-devel] [PATCH 1/2] Code clean up

mir at datanom.net mir at datanom.net
Sun Oct 20 13:20:34 CEST 2013


From: Michael Rasmussen <mir at datanom.net>

Signed-off-by: Michael Rasmussen <mir at datanom.net>
---
 PVE/Storage/LunCmd/Istgt.pm | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/PVE/Storage/LunCmd/Istgt.pm b/PVE/Storage/LunCmd/Istgt.pm
index 13d57fa..5c05a3d 100644
--- a/PVE/Storage/LunCmd/Istgt.pm
+++ b/PVE/Storage/LunCmd/Istgt.pm
@@ -221,7 +221,6 @@ my $init_lu_name = sub {
 
 my $free_lu_name = sub {
 	my ($target, $lu_name) = @_;
-	my $used = ();
 
 	$lu_name =~ /^LUN(\d+)$/;
 	$SETTINGS->{$target}->{used}->{$1} = 0;
@@ -288,7 +287,7 @@ my $parser = sub {
 	die "$scfg->{target}: Target not found" unless $SETTINGS->{targets};
 	my $max = $SETTINGS->{targets};
 	my $base = get_base;
-	my $n;
+
 	for (my $i = 1; $i <= $max; $i++) {
 		my $target = $SETTINGS->{nodebase}.':'.$SETTINGS->{"LogicalUnit$i"}->{TargetName};
 		if ($target eq $scfg->{target}) {
-- 
1.8.4.rc3




More information about the pve-devel mailing list