CA-184521: Removed unnecessary code

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
This commit is contained in:
Gabor Apati-Nagy 2015-10-06 16:01:31 +01:00
parent ef02590008
commit 3abedfe3bd

View File

@ -2135,7 +2135,7 @@ namespace XenAdmin.Core
long.TryParse(vdi.sm_config["initial_allocation"], out initialAllocationVdi);
long initialAllocationSr = -1;
if (sr.IsThinProvisioned && sr.sm_config.ContainsKey("initial_allocation") && sr.sm_config != null)
if (sr.sm_config != null && sr.sm_config.ContainsKey("initial_allocation"))
long.TryParse(sr.sm_config["initial_allocation"], out initialAllocationSr);
if (initialAllocationVdi > -1)