Mostly revert r200691. U-Boot syscall() entry point returns 1 on success.
This commit is contained in:
parent
75770ded45
commit
a0e34aa0ab
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user