]> git.proxmox.com Git - mirror_edk2.git/commit - BaseTools/Source/Python/GenFds/FdfParser.py
BaseTools/GenFds: Remove redundant GetRealFileLine call
authorZurcher, Christopher J <christopher.j.zurcher@intel.com>
Wed, 23 May 2018 03:35:42 +0000 (11:35 +0800)
committerYonghong Zhu <yonghong.zhu@intel.com>
Mon, 28 May 2018 01:20:24 +0000 (09:20 +0800)
commit20274d2389eb012812f4561c8eb7cffc57a68850
tree298b0b7843412bc70b065aa283a34d21068df46f
parente95a0dfb46339d459add8af848d5042ec6ff9a8d
BaseTools/GenFds: Remove redundant GetRealFileLine call

The EvaluateConditional function should not call GetRealFileLine
because this is already done in Warning init and only needs to be
calculated in the event of a parsing failure. This fix stops
InsertedLines from being subtracted twice during error handling.

Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Zurcher, Christopher J <christopher.j.zurcher@intel.com>
Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
BaseTools/Source/Python/GenFds/FdfParser.py