mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
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
|
||||
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user