Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 2010 10:15:31 +0000 (UTC)
From:      Rafal Jaworowski <raj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r208535 - head/sys/boot/uboot/lib
Message-ID:  <201005251015.o4PAFVx4088802@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: raj
Date: Tue May 25 10:15:30 2010
New Revision: 208535
URL: http://svn.freebsd.org/changeset/base/208535

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

Modified:
  head/sys/boot/uboot/lib/glue.c

Modified: head/sys/boot/uboot/lib/glue.c
==============================================================================
--- head/sys/boot/uboot/lib/glue.c	Tue May 25 09:59:53 2010	(r208534)
+++ head/sys/boot/uboot/lib/glue.c	Tue May 25 10:15:30 2010	(r208535)
@@ -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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005251015.o4PAFVx4088802>