]> git.dujemihanovic.xyz Git - u-boot.git/commit
env: split env_import_redund() into 2 functions
authorHeiko Schocher <hs@denx.de>
Sat, 10 Oct 2020 08:28:04 +0000 (10:28 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 30 Oct 2020 14:54:38 +0000 (10:54 -0400)
commit1229533a2a9cd85fb18a95841e986fca79dece86
tree4f3d71bf23252a4d327c5f029beb5680e40eba7f
parent8d7f3fcb4a20bade1a940cea3e3b6983587d0fc9
env: split env_import_redund() into 2 functions

split from env_import_redund() the part which checks
which Environment is valid into a separate function
called env_check_redund() and call it from env_import_redund().

So env_check_redund() can be used from places which also
need to do this checks.

Signed-off-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
env/common.c
include/env.h