Skip to content

Commit 223e9fd

Browse files
Jamie SmithVictorWTang
andauthored
Remove else
Co-authored-by: VictorWTang <[email protected]>
1 parent d5d76c9 commit 223e9fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tools/python/memap/memap.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,8 @@ def _add_symbol_to_memory_banks(self, symbol_name: str, start_addr: int, size: i
135135
# print(f"Symbol {symbol_name} uses {size} bytes in {bank_info.name}")
136136

137137
return
138-
else:
139-
print(f"Warning: Symbol {symbol_name} is only partially contained by memory bank {bank_info.name}")
140-
bank_info.used_size += (bank_info.start_addr + bank_info.total_size) - start_addr
138+
print(f"Warning: Symbol {symbol_name} is only partially contained by memory bank {bank_info.name}")
139+
bank_info.used_size += (bank_info.start_addr + bank_info.total_size) - start_addr
141140

142141
print(f"Warning: Symbol {symbol_name} (at address 0x{start_addr:x}, size {size}) is not inside a defined memory "
143142
f"bank for this target.")

0 commit comments

Comments
 (0)