image: Reduce variable scope in boot_get_ramdisk()
authorSimon Glass <sjg@chromium.org>
Sun, 26 Sep 2021 01:43:36 +0000 (19:43 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 8 Oct 2021 19:53:27 +0000 (15:53 -0400)
commit78f88790e3f7693a1ee9a87cc53d79e959c5633f
tree15a6758e71549d6abd99191883ad137f3bbf7c20
parent1df654a6af5b14731383039f868f12db7069a476
image: Reduce variable scope in boot_get_ramdisk()

Move the variables declarations to where they are needed, to reduce the
number of #ifdefs needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/image-board.c