summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2016-03-28 12:27:50 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2016-03-28 12:27:50 +0800
commit4fa7b3301ef31f2787b9d0bde6694203a67b3ff2 (patch)
tree8b66f3a5bdf77627593cfd578b0a812b8c4510ec
parent877c0a93be4317f5715347359cc78d41f4654748 (diff)
downloadedk2-platforms-4fa7b3301ef31f2787b9d0bde6694203a67b3ff2.tar.xz
BaseTools: Remove the unnecessary check for RAW File
Because the __VerifyFile function already checked whether the file is valid. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
-rw-r--r--BaseTools/Source/Python/GenFds/FdfParser.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/BaseTools/Source/Python/GenFds/FdfParser.py b/BaseTools/Source/Python/GenFds/FdfParser.py
index b86c196067..12d4f2bb73 100644
--- a/BaseTools/Source/Python/GenFds/FdfParser.py
+++ b/BaseTools/Source/Python/GenFds/FdfParser.py
@@ -2731,8 +2731,6 @@ class FdfParser:
if FileName == '}':
self.__UndoToken()
raise Warning("expected Filename value", self.FileName, self.CurrentLineNumber)
- elif not os.path.isfile(FileName):
- raise Warning("expected '}'", self.FileName, self.CurrentLineNumber)
self.__VerifyFile(FileName)
File = PathClass(NormPath(FileName), GenFdsGlobalVariable.WorkSpaceDir)