From a21f6efaf58cf3df6537f1549d509339de5aeabc Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Wed, 12 Feb 2025 16:23:33 -0600 Subject: [PATCH] tools: binman: ti_board_cfg: Fix pylint error over 'br' 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 Signed-off-by: Tom Rini --- 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 c10d66edcb1..cc7075eeebe 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.39.5