[PATCH 04/11] test: boot: imagemap: declare locals at the top

Simon Glass sjg at chromium.org
Tue Oct 20 00:56:13 PDT 2026


On 2026-10-14T08:38:38, Daniel Golle <daniel at makrotopia.org> wrote:
> test: boot: imagemap: declare locals at the top
>
> Two tests declare variables away from the top of the function body: the
> extend test wraps its last assertions in an anonymous block to scope p3
> and p2_end, and the out-of-bounds test declares dst after a statement.
> Neither shape is used elsewhere in U-Boot.
>
> Hoist all four to the declaration block.
>
> Signed-off-by: Daniel Golle <daniel at makrotopia.org>
>
>  test/boot/imagemap.c | 26 ++++++++++++--------------
>  1 file changed, 12 insertions(+), 14 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>



More information about the openwrt-devel mailing list