]> git.baikalelectronics.ru Git - uboot.git/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)
commit5cf56fc2074aab7a40d3fdf9d304bed861398292
treea3ea173d81744cd8dc118e1de90520bf6ae1c6af
parent4e004a51da72147f05418602d1c78c888b1e3b6a
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