tools: binman: ti_board_cfg: Fix pylint error over 'br'
authorTom Rini <trini@konsulko.com>
Wed, 12 Feb 2025 22:23:33 +0000 (16:23 -0600)
committerTom 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

index c10d66e..cc7075e 100644 (file)
@@ -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'):