]> git.baikalelectronics.ru Git - uboot.git/commit
env: Adjust the load() method to return an error
authorSimon Glass <sjg@chromium.org>
Thu, 3 Aug 2017 18:22:17 +0000 (12:22 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 16 Aug 2017 12:31:24 +0000 (08:31 -0400)
commit2fc0d0e2835478eb0b4c25b8c6aba9dc3368b506
tree39b5ee4ee37e5a595e088456e792d7251f7ee1ca
parentf49d058b61bb18ec42215476b7e0a404882aff28
env: Adjust the load() method to return an error

The load() methods have inconsistent behaviour on error. Some of them load
an empty default environment. Some load an environment containing an error
message. Others do nothing.

As a step in the right direction, have the method return an error code.
Then the caller could handle this itself in a consistent way.

Signed-off-by: Simon Glass <sjg@chromium.org>
14 files changed:
env/dataflash.c
env/eeprom.c
env/ext4.c
env/fat.c
env/flash.c
env/mmc.c
env/nand.c
env/nvram.c
env/onenand.c
env/remote.c
env/sata.c
env/sf.c
env/ubi.c
include/environment.h