05 Jan, 2016
1 commit
-
Before calling hsearch_r, initialize callback entry to NULL.
Coverity log:
"
Uninitialized scalar variable (UNINIT)
uninit_use_in_call: Using uninitialized value e.
Field e.callback is uninitialized when calling hsearch_r.
"Reported-by: Coverity
Signed-off-by: Peng Fan
Cc: Tom Rini
Cc: Simon Glass
21 May, 2015
1 commit
-
In some cases it can be helpful to have context in the callback about
the calling situation. This is needed for following patches.Signed-off-by: Joe Hershberger
Reviewed-by: Simon Glass
14 Jan, 2014
1 commit
-
when creating the hashtable, for each environmentvariable
getenv(ENV_CALLBACK_VAR) and getenv(ENV_FLAGS_VAR) is called,
which costs at this point a lot of time. So call this two
getenv() calls only once.Boottime on the ids8313 board without this patch:
2013-12-19 13:38:22,894: NAND: 128 MiB
2013-12-19 13:38:27,659: In: serial
(~4.8 sec)Bootime with this patch on the ids8313 board:
2013-12-19 13:40:25,332: NAND: 128 MiB
2013-12-19 13:40:25,546: In: serial
(~0.2 sec)Signed-off-by: Heiko Schocher
Cc: Tom Rini
Cc: Joe Hershberger
Cc: Wolfgang Denk
24 Jul, 2013
1 commit
-
Signed-off-by: Wolfgang Denk
[trini: Fixup common/cmd_io.c]
Signed-off-by: Tom Rini
28 Mar, 2013
1 commit
-
This is not called outside of env_callback.c so mark static, remove from
Cc: Joe Hershberger
Signed-off-by: Tom Rini
Acked-by: Joe Hershberger
14 Dec, 2012
1 commit
-
Add support for per-variable callbacks to the "hashtable" functions.
Signed-off-by: Joe Hershberger
!!!fix comment in callback