[PATCH] tools: binman: ti_board_cfg: Fix pylint error over 'br'
Neha Malcom Francis
n-francis at ti.com
Thu Feb 13 07:58:40 CET 2025
Hi Tom,
On 13/02/25 03:53, Tom Rini wrote:
> 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 <trini at konsulko.com>
> ---
> Cc: Neha Malcom Francis <n-francis at ti.com>
> Cc: Simon Glass <sjg at 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'):
Reviewed-by: Neha Malcom Francis <n-francis at ti.com>
--
Thanking You
Neha Malcom Francis
More information about the U-Boot
mailing list