mirror of https://github.com/acidanthera/audk.git
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>
This commit is contained in:
parent
3e8bab960e
commit
47f7040ddb
|
@ -123,7 +123,6 @@ def IsValidCName(Str):
|
||||||
return True if __ValidString.match(Str) else False
|
return True if __ValidString.match(Str) else False
|
||||||
|
|
||||||
def BuildOptionValue(PcdValue, GuidDict):
|
def BuildOptionValue(PcdValue, GuidDict):
|
||||||
IsArray = False
|
|
||||||
if PcdValue.startswith('H'):
|
if PcdValue.startswith('H'):
|
||||||
InputValue = PcdValue[1:]
|
InputValue = PcdValue[1:]
|
||||||
elif PcdValue.startswith("L'") or PcdValue.startswith("'"):
|
elif PcdValue.startswith("L'") or PcdValue.startswith("'"):
|
||||||
|
@ -133,8 +132,6 @@ def BuildOptionValue(PcdValue, GuidDict):
|
||||||
else:
|
else:
|
||||||
InputValue = PcdValue
|
InputValue = PcdValue
|
||||||
if IsFieldValueAnArray(InputValue):
|
if IsFieldValueAnArray(InputValue):
|
||||||
IsArray = True
|
|
||||||
if IsArray:
|
|
||||||
try:
|
try:
|
||||||
PcdValue = ValueExpressionEx(InputValue, 'VOID*', GuidDict)(True)
|
PcdValue = ValueExpressionEx(InputValue, 'VOID*', GuidDict)(True)
|
||||||
except:
|
except:
|
||||||
|
|
Loading…
Reference in New Issue