Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 2013 02:39:56 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r256870 - head/sys/dev/ofw
Message-ID:  <201310220239.r9M2duTH045707@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Tue Oct 22 02:39:56 2013
New Revision: 256870
URL: http://svnweb.freebsd.org/changeset/base/256870

Log:
  Return standards-compliant code from OF_nextprop() with FDT when no
  properties remain on this node.

Modified:
  head/sys/dev/ofw/ofw_fdt.c

Modified: head/sys/dev/ofw/ofw_fdt.c
==============================================================================
--- head/sys/dev/ofw/ofw_fdt.c	Tue Oct 22 00:58:51 2013	(r256869)
+++ head/sys/dev/ofw/ofw_fdt.c	Tue Oct 22 02:39:56 2013	(r256870)
@@ -329,7 +329,7 @@ fdt_nextprop(int offset, char *buf, size
 			depth = -1;
 	} while (depth >= 0);
 
-	return (-1);
+	return (0);
 }
 
 /*



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