mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
lib/hashtable.c: don't test ->callback in SPL
In SPL, environment callbacks are not supported, so e->callback is always NULL. Removing this makes the SPL a little smaller (about 400 bytes in my ppc build) with no functional change. Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
7f529f6585
commit
34284970a1
1 changed files with 2 additions and 0 deletions
|
@ -226,8 +226,10 @@ static int
|
|||
do_callback(const struct env_entry *e, const char *name, const char *value,
|
||||
enum env_op op, int flags)
|
||||
{
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
if (e->callback)
|
||||
return e->callback(name, value, op, flags);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue