scripts: extract_dts_includes: fix potential undefined read
Only read 'status' when it has been assigned in compress_nodes(). Signed-off-by: Marti Bolivar <marti@opensourcefoundries.com>
This commit is contained in:
parent
244e9564ac
commit
607a817a4a
1 changed files with 2 additions and 2 deletions
|
@ -173,8 +173,8 @@ def compress_nodes(nodes, path):
|
|||
if 'props' in nodes:
|
||||
status = nodes['props'].get('status')
|
||||
|
||||
if status == "disabled":
|
||||
return
|
||||
if status == "disabled":
|
||||
return
|
||||
|
||||
if isinstance(nodes, dict):
|
||||
reduced[path] = dict(nodes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue