aboutsummaryrefslogtreecommitdiff
path: root/sys/boot
diff options
context:
space:
mode:
authorRafal Jaworowski <raj@FreeBSD.org>2010-05-25 10:15:30 +0000
committerRafal Jaworowski <raj@FreeBSD.org>2010-05-25 10:15:30 +0000
commita0e34aa0ab37d550244965071b1294201d96c8a3 (patch)
treea4c3517bcc076e4b7640407baced856903a258c3 /sys/boot
parent75770ded4542b29bae76d27ebd442ff10d0734c7 (diff)
Notes
Diffstat (limited to 'sys/boot')
-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 5483732881a0..9e6d384adaec 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)