]> git.baikalelectronics.ru Git - uboot.git/commit
env: mmc: Fix offset issue for env save
authorYe Li <ye.li@nxp.com>
Tue, 31 Jan 2023 06:41:58 +0000 (14:41 +0800)
committerTom Rini <trini@konsulko.com>
Mon, 6 Feb 2023 22:10:15 +0000 (17:10 -0500)
commitcd8625b3cc1ec97df584e0ea506a2eb248d08a2c
tree7aca6c40b4a4da85a6f0c3d65c5fe86d36cb592d
parent6f14b4e31d0e71ca9170655998b947cdc30fc934
env: mmc: Fix offset issue for env save

Fix the issue in commit 591dbad ("env: mcc: Drop unnecessary #ifdefs")
If CONFIG_SYS_REDUNDAND_ENVIRONMENT is not defined, the offset value
becomes undetermined, so write env to unexpected offset.

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
env/mmc.c