summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorCarsey, Jaben </o=Intel/ou=Americas01/cn=Workers/cn=Carsey, Jaben>2018-03-14 07:11:34 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2018-03-19 09:26:21 +0800
commit47f7040ddbdfea033ef6e6b76f4c8fa19f67aaae (patch)
treed16bdd946bc413ccad6441a2ca2b3a9c4ec1c583 /BaseTools
parent3e8bab960eca8464ab1d0f2ad3f06a2ccc925f95 (diff)
downloadedk2-47f7040ddbdfea033ef6e6b76f4c8fa19f67aaae.tar.gz
edk2-47f7040ddbdfea033ef6e6b76f4c8fa19f67aaae.tar.bz2
edk2-47f7040ddbdfea033ef6e6b76f4c8fa19f67aaae.zip
BaseTools: Expression - remove variable
The InArary variable serves no purpose. just do the work immediately. Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/Python/Common/Expression.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/BaseTools/Source/Python/Common/Expression.py b/BaseTools/Source/Python/Common/Expression.py
index 85c1ce9bbc..4f0f377f37 100644
--- a/BaseTools/Source/Python/Common/Expression.py
+++ b/BaseTools/Source/Python/Common/Expression.py
@@ -123,7 +123,6 @@ def IsValidCName(Str):
return True if __ValidString.match(Str) else False
def BuildOptionValue(PcdValue, GuidDict):
- IsArray = False
if PcdValue.startswith('H'):
InputValue = PcdValue[1:]
elif PcdValue.startswith("L'") or PcdValue.startswith("'"):
@@ -133,8 +132,6 @@ def BuildOptionValue(PcdValue, GuidDict):
else:
InputValue = PcdValue
if IsFieldValueAnArray(InputValue):
- IsArray = True
- if IsArray:
try:
PcdValue = ValueExpressionEx(InputValue, 'VOID*', GuidDict)(True)
except: