Skip to content

Commit 0e8e92c

Browse files
ulfalizergalak
authored andcommitted
scripts/dts: Fix bug in dead /memreserve/ code
The /memreserve/ code would crash if it ever ran, because 'name' isn't defined (seems to be some copy-paste here). There are no /memreserve/s in Zephyr though, so it works out. 'name' seems to be the node name. Not sure what to put for a /memreserve/, but make it '<memreserve>' to make it stand out. Fixes a pylint warning. Signed-off-by: Ulf Magnusson <[email protected]>
1 parent 7ffd628 commit 0e8e92c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/dts/devicetree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def parse_file(fd, ignore_dts_version=False):
212212
'reg': [start, end],
213213
'label': label,
214214
'addr': start,
215-
'name': build_node_name(name, start)
215+
'name': '<memreserve>'
216216
}
217217
elif line.endswith('{'):
218218
if not has_v1_tag and not ignore_dts_version:

0 commit comments

Comments
 (0)