]> git.dujemihanovic.xyz Git - u-boot.git/commit
api: Use hashtable function for API_env_enum
authorEmmanuel Vadot <manu@bidouilliste.com>
Mon, 26 Dec 2016 17:57:56 +0000 (18:57 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 20 Jan 2017 14:15:24 +0000 (09:15 -0500)
commit6215bd4c1fd6bce95072ad123cf1e4af94ab44e2
tree9ce8f69f433d1a41ab71d0ea858f93cacc3e1edb
parent6baa692f90f398ffe334c1f5668e459cd59a5825
api: Use hashtable function for API_env_enum

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 <manu@bidouilliste.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
api/api.c