]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: fix TestFdtUtil()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 20 Apr 2023 18:03:43 +0000 (20:03 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 4 May 2023 07:57:43 +0000 (09:57 +0200)
commitd0d0e776cf433ede6711e2c7d5bdf5866381b555
tree080f25e7b11f5da4f3cfa05be2e7bfcf4f658ca0
parent2440719d258a97824395532cb4a775752b423f63
tools: fix TestFdtUtil()

Variable old_outdir cannot be used before assignment.
The assignment must occur before the try block.

tools/dtoc/test_fdt.py:796:26:
E0601: Using variable 'old_outdir' before assignment
(used-before-assignment)

Add missing space in assignment.

Fixes: a004f29464d1 ("binman: Tidy up _SetupDtb() to use its own temporary file")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/dtoc/test_fdt.py