]> xenbits.xensource.com Git - people/dariof/xen-tools.git/commitdiff
Normalize redundant FAIL test
authorAxel Beckert <abe@deuxchevaux.org>
Thu, 17 Jan 2013 20:07:34 +0000 (21:07 +0100)
committerAxel Beckert <abe@deuxchevaux.org>
Thu, 17 Jan 2013 20:16:22 +0000 (21:16 +0100)
bin/xen-create-image

index 76a1dc84a9785bd0ac76267d2c1d229ae2bbd4c6..79fa9743219b7764deec44c7f5f9413f7e09ce88 100755 (executable)
@@ -4188,7 +4188,7 @@ sub END
     #  $CONFIG{'FAIL'} = 0  -  Success
     #  $CONFIG{'FAIL'} = 1  -  Failed to install, delete the image
     #  $CONFIG{'FAIL'} = 2  -  Files exist, either .cfg or lvm... etc
-    if ( ($CONFIG{'FAIL'} == 1 or $CONFIG{'FAIL'} == 1) && ( !$CONFIG{ 'keep' } ) )
+    if ( $CONFIG{'FAIL'} == 1 && ( !$CONFIG{ 'keep' } ) )
     {
 
         #