]> git.dujemihanovic.xyz Git - u-boot.git/commit
stm32: Use local vars in stm32prog for initrd and fdt
authorSimon Glass <sjg@chromium.org>
Sat, 16 Dec 2023 03:14:22 +0000 (20:14 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 21 Dec 2023 21:07:52 +0000 (16:07 -0500)
commit6b50aff13f55262210636d7329811c649173fb67
tree70544abe6fda49d8d77a9775b45e210fb7e79460
parente1a24c025c3b065b417bd0dd491cb7000583b334
stm32: Use local vars in stm32prog for initrd and fdt

Rather than assigning to the bootm_argv[] array multiple times, use
local variables for the two things that can change and assign them at
the end.

This makes it easier to drop the array eventually.

Tidu up an overly short line while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c