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.

Signed-off-by: Tom Rini <tr...@konsulko.com>
---
Cc: Neha Malcom Francis <n-fran...@ti.com>
Cc: Simon Glass <s...@chromium.org>
---
 tools/binman/etype/ti_board_config.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/binman/etype/ti_board_config.py 
b/tools/binman/etype/ti_board_config.py
index c10d66edcb15..cc7075eeebec 100644
--- 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'):
-- 
2.43.0

Reply via email to