1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-30 14:19:21 +01:00
Files
u-boot-megous/lib
Rasmus Villemoes 080019b86c make env_entry::callback conditional on !CONFIG_SPL_BUILD
The callback member of struct env_entry is always NULL for an SPL
build. Removing it thus saves a bit of run-time memory in the
SPL (when CONFIG_SPL_ENV_SUPPORT=y) since struct env_entry is embedded
in struct env_entry_node - i.e. about 2KB for the normal case of
512+change hash table entries.

Two small fixups are needed for this, all other references to the
callback member are already under !CONFIG_SPL_BUILD: Don't initialize
.callback in set_flags() - hsearch_r doesn't use that value
anyway. And make env_callback_init() initialize ->callback to NULL for
a new entry instead of relying on an unused or deleted entry having
NULL in ->callback.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-04-24 10:09:59 -04:00
..
2020-04-16 14:36:28 +08:00
2020-01-17 10:15:49 -05:00
2019-12-06 16:44:20 -05:00
2019-09-20 20:09:19 +02:00
2011-01-18 23:38:08 +01:00
2019-12-02 18:23:07 -05:00
2019-10-31 07:22:53 -04:00
2010-09-19 19:29:47 +02:00
2019-07-10 16:52:58 -06:00
2020-04-23 10:14:16 +08:00
2018-06-13 07:49:12 -04:00
2012-04-29 14:14:08 +02:00
2019-12-06 16:44:20 -05:00
2018-09-05 16:02:34 -04:00
2019-08-11 16:43:41 -04:00
2019-02-19 08:55:43 -05:00
2020-01-22 17:47:57 -05:00
2019-05-05 08:48:50 -04:00