]> git.dujemihanovic.xyz Git - u-boot.git/commit
fsl-layerscape/soc.c: do not destroy bootcmd environment
authorMike Looijmans <mike.looijmans@topic.nl>
Tue, 30 Jan 2024 14:26:56 +0000 (15:26 +0100)
committerPeng Fan <peng.fan@nxp.com>
Thu, 8 Feb 2024 02:45:32 +0000 (10:45 +0800)
commit121696c957d741d17125f5416d1210b11ef8afdd
treed5eba266f83c6a66207fc6f14f69b04eb52e2984
parent55fc0cbbd6c973849371bb21b45981ad26847a4b
fsl-layerscape/soc.c: do not destroy bootcmd environment

When an XXX_BOOTCOMMAND isn't defined, the result is that bootcmd is set
to some random memory content. Fix it so that the function does nothing
in that case and leaves the bootcmd environment unmodified.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
arch/arm/cpu/armv8/fsl-layerscape/soc.c