From 12a3879a96625b392c4f529a6a06d777dda9544f Mon Sep 17 00:00:00 2001 From: hu-weihua Date: Mon, 7 Mar 2016 04:01:42 -0500 Subject: [PATCH] delete loop statement to make code succinctly --- xCAT-server/share/xcat/tools/xCATreg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/tools/xCATreg b/xCAT-server/share/xcat/tools/xCATreg index b60c60304..84436da6d 100644 --- a/xCAT-server/share/xcat/tools/xCATreg +++ b/xCAT-server/share/xcat/tools/xCATreg @@ -736,7 +736,7 @@ sub do_test { $batbundle="le_ubuntu_cmd.bundle" if($mn =~ /ubuntuEL/); } if(($mn !~ /ubuntu/) && ($mn !~ /E/)){ - for(my $loop=0; $loop<1; $loop++){ + { my $rc; #diskfull installation in flat mode test @@ -845,7 +845,7 @@ sub do_test { $casestop=0; } }else{ - for(my $loop=0; $loop<1; $loop++){ + { my $rc=0; #diskless installation in flat mode test