]> git.dujemihanovic.xyz Git - u-boot.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)
commitccd0542ab2607228c8e434e2875b014f9bba49f8
tree7aca6c40b4a4da85a6f0c3d65c5fe86d36cb592d
parent94a51af409bc2a624315004468a898be9644e2ec
env: mmc: Fix offset issue for env save

Fix the issue in commit 46c9016 ("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