diff options
| author | Tom Rini <[email protected]> | 2025-02-12 16:23:33 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-02-21 08:24:31 -0600 |
| commit | a21f6efaf58cf3df6537f1549d509339de5aeabc (patch) | |
| tree | 7668207ea36eb37392c7652f656631f6dec6415c /tools | |
| parent | c128ec4647267c8d7d667cbb1dd9037a72f70934 (diff) | |
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 <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/binman/etype/ti_board_config.py | 1 |
1 files changed, 1 insertions, 0 deletions
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'): |
