summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/boot/uboot/lib/glue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/uboot/lib/glue.c b/sys/boot/uboot/lib/glue.c
index 5483732..9e6d384 100644
--- a/sys/boot/uboot/lib/glue.c
+++ b/sys/boot/uboot/lib/glue.c
@@ -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)
OpenPOWER on IntegriCloud