diff --git a/BaseTools/Source/Python/AutoGen/GenPcdDb.py b/BaseTools/Source/Python/AutoGen/GenPcdDb.py index c9cb77941c..f8fbd06f5c 100644 --- a/BaseTools/Source/Python/AutoGen/GenPcdDb.py +++ b/BaseTools/Source/Python/AutoGen/GenPcdDb.py @@ -301,8 +301,7 @@ class DbItemList: for ItemIndex in xrange(Index): Offset += len(self.RawDataList[ItemIndex]) else: - for Datas in self.RawDataList: - Offset = self.ItemSize * Index + Offset = self.ItemSize * Index return Offset