Mostly revert r200691. U-Boot syscall() entry point returns 1 on success.

This commit is contained in:
Rafal Jaworowski 2010-05-25 10:15:30 +00:00
parent 75770ded45
commit a0e34aa0ab

View File

@ -574,7 +574,7 @@ ub_env_enum(const char *last)
* internally, which handles such case
*/
env = NULL;
if (syscall(API_ENV_ENUM, NULL, (uint32_t)last, (uint32_t)&env) != 0)
if (!syscall(API_ENV_ENUM, NULL, (uint32_t)last, (uint32_t)&env))
return (NULL);
if (env == NULL)