Re: [U-Boot] [PATCH v2] api: Use hashtable function for API_env_enum

2017-01-11 Thread Simon Glass
On 26 December 2016 at 10:57, Emmanuel Vadot wrote: > The current code can loop undefinitly as it doesn't parse > correctly the env data. > Since the env is an hashtable, use the hashtable function for > the API_ENV_ENUM api call. > > Signed-off-by: Emmanuel Vadot > --- > Changes in v2: > * Expl

[U-Boot] [PATCH v2] api: Use hashtable function for API_env_enum

2016-12-26 Thread Emmanuel Vadot
The current code can loop undefinitly as it doesn't parse correctly the env data. Since the env is an hashtable, use the hashtable function for the API_ENV_ENUM api call. Signed-off-by: Emmanuel Vadot --- Changes in v2: * Explain why the change is needed. api/api.c | 60 +++