]> git.sur5r.net Git - u-boot/commit
env: sf: use env_import_redund to simplify env_sf_load
authorSimon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com>
Wed, 31 Jan 2018 13:47:13 +0000 (14:47 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 1 Feb 2018 13:05:53 +0000 (08:05 -0500)
commit80719938c9f901cc6b90b85d8065d084a03c06ae
treea3ea173d81744cd8dc118e1de90520bf6ae1c6af
parent2166ebf7831674508425daf50c78e481083c6462
env: sf: use env_import_redund to simplify env_sf_load

For the redundant environment configuration, env_sf_load still
contained duplicate code instead of using env_import_redund().

Simplify the code by only executing the load twice and delegating
everything else to env_import_redund.

Signed-off-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
env/sf.c