env/ext4.c: remove CONFIG_CMD_SAVEENV ifdef
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Wed, 19 Feb 2020 09:47:42 +0000 (09:47 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 24 Apr 2020 14:10:00 +0000 (10:10 -0400)
commit1df96a7e7679c691e43e53206418302aff236a27
tree99c7b8c06a6e8419435780031eecefd5c4d0a0e6
parent3908bc93443be458abe28b9c3797ad912612631a
env/ext4.c: remove CONFIG_CMD_SAVEENV ifdef

Removing this ifdef/endif pair yields a "defined but unused warning"
for CONFIG_CMD_SAVEENV=n, but that vanishes if we use the ENV_SAVE_PTR
macro instead. This gives slightly better compile testing, and
moreover, it's possible to have

  CONFIG_CMD_SAVEENV=n
  CONFIG_SPL_SAVEENV=y
  SPL_ENV_IS_IN_EXT4=y

in which case env_ext4_save would erroneously not be compiled in.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
env/ext4.c