mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 00:24:07 +02:00
BaseTools: AutoGen - no need to recompute
looping over a list and recomputing the same value has no impact on final value Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@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
92a4eebb37
commit
61f5b77dd5
@ -301,8 +301,7 @@ class DbItemList:
|
|||||||
for ItemIndex in xrange(Index):
|
for ItemIndex in xrange(Index):
|
||||||
Offset += len(self.RawDataList[ItemIndex])
|
Offset += len(self.RawDataList[ItemIndex])
|
||||||
else:
|
else:
|
||||||
for Datas in self.RawDataList:
|
Offset = self.ItemSize * Index
|
||||||
Offset = self.ItemSize * Index
|
|
||||||
|
|
||||||
return Offset
|
return Offset
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user