]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commit38b1eb40a4daec0622316d7f46bb5b2a01169ba6
tree99c7b8c06a6e8419435780031eecefd5c4d0a0e6
parent0b25294e21ec80c4ca8af1245fccb07739c12546
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