From bb512af9ec221e44e7bb7a0d4fbba6fe344a72b8 Mon Sep 17 00:00:00 2001 From: Nathan Whitehorn Date: Tue, 22 Oct 2013 02:39:56 +0000 Subject: [PATCH] Return standards-compliant code from OF_nextprop() with FDT when no properties remain on this node. --- sys/dev/ofw/ofw_fdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ofw/ofw_fdt.c b/sys/dev/ofw/ofw_fdt.c index 7b3b0e98dab..4191e7e60d7 100644 --- a/sys/dev/ofw/ofw_fdt.c +++ b/sys/dev/ofw/ofw_fdt.c @@ -329,7 +329,7 @@ fdt_nextprop(int offset, char *buf, size_t size) depth = -1; } while (depth >= 0); - return (-1); + return (0); } /*