Skip to content

Commit

Permalink
Remove int conversion since bus is already an int
Browse files Browse the repository at this point in the history
Add items to bus_data with extend

Signed-off-by: Sae86 <sara.batllori@intel.com>
  • Loading branch information
Sae86 authored and npmitche committed Feb 28, 2024
1 parent 9bf2ab6 commit b182824
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chipsec/hal/mmio.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,9 @@ def list_MMIO_BARs(self) -> None:
bus_data = self.cs.get_register_bus(_bar['register'])
if not bus_data:
if 'bus' in self.cs.get_register_def(_bar['register']):
bus_data = [int(self.cs.get_register_def(_bar['register'])['bus'], 16)]
bus_data.extend(self.cs.get_register_def(_bar['register'])['bus'])
elif 'bus' in _bar:
bus_data = [_bar['bus']]
bus_data.extend(_bar['bus'])
else:
continue
for bus in bus_data:
Expand Down

0 comments on commit b182824

Please sign in to comment.