summaryrefslogtreecommitdiff
path: root/tools/binman/ftest.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-02-19 08:11:16 -0700
committerTom Rini <trini@konsulko.com>2025-02-21 08:24:37 -0600
commit6e628c221ebf19a869542d31187e3ac29dba20fb (patch)
tree34b3fc890f0f8574804c08edb3016e7f614b00cb /tools/binman/ftest.py
parent8e233cca9d9b8876f60e8fa2a17eceda165e649e (diff)
tools: Fix pylint 3.3.4 errors
This newer pylint produces errors about variables possibly being used before being set. Adjust the code to pass these checks. Signed-off-by: Simon Glass <sjg@chromium.org> Reported-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools/binman/ftest.py')
-rw-r--r--tools/binman/ftest.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py
index a553ca9e564..d2802f67e2d 100644
--- a/tools/binman/ftest.py
+++ b/tools/binman/ftest.py
@@ -6381,6 +6381,7 @@ fdt fdtmap Extract the devicetree blob from the fdtmap
ename, prop = entry_m.group(1), entry_m.group(3)
entry, entry_name, prop_name = image.LookupEntry(entries,
name, msg)
+ expect_val = None
if prop_name == 'offset':
expect_val = entry.offset
elif prop_name == 'image_pos':