diff options
author | raj <raj@FreeBSD.org> | 2010-05-25 10:15:30 +0000 |
---|---|---|
committer | raj <raj@FreeBSD.org> | 2010-05-25 10:15:30 +0000 |
commit | 09cc0a5006276b9af1ddce405b261b19784b9e31 (patch) | |
tree | a4c3517bcc076e4b7640407baced856903a258c3 /sys/boot/uboot/lib | |
parent | 691628c1745dc83806f1cb5ce5d7c1834367c9cd (diff) | |
download | FreeBSD-src-09cc0a5006276b9af1ddce405b261b19784b9e31.zip FreeBSD-src-09cc0a5006276b9af1ddce405b261b19784b9e31.tar.gz |
Mostly revert r200691. U-Boot syscall() entry point returns 1 on success.
Diffstat (limited to 'sys/boot/uboot/lib')
-rw-r--r-- | sys/boot/uboot/lib/glue.c | 2 |
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) |