git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c128ec4
)
tools: binman: ti_board_cfg: Fix pylint error over 'br'
author
Tom Rini
<trini@konsulko.com>
Wed, 12 Feb 2025 22:23:33 +0000
(16:23 -0600)
committer
Tom Rini
<trini@konsulko.com>
Fri, 21 Feb 2025 14:24:31 +0000
(08:24 -0600)
With a newer pylint, we get a warning that 'br' could be used before
assignment. Fix this by declaring br first as an empty bytearray.
Reviewed-by: Neha Malcom Francis <n-francis@ti.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
tools/binman/etype/ti_board_config.py
patch
|
blob
|
history
diff --git
a/tools/binman/etype/ti_board_config.py
b/tools/binman/etype/ti_board_config.py
index
c10d66e
..
cc7075e
100644
(file)
--- a/
tools/binman/etype/ti_board_config.py
+++ b/
tools/binman/etype/ti_board_config.py
@@
-119,6
+119,7
@@
class Entry_ti_board_config(Entry_section):
array of bytes representing value
"""
size = 0
+ br = bytearray()
if (data_type == '#/definitions/u8'):
size = 1
elif (data_type == '#/definitions/u16'):