[linux-yocto] [PATCH 10/15] drivers/of: Fix Compile Warning

Daniel Dragomir daniel.dragomir at windriver.com
Wed Aug 2 05:46:45 PDT 2017


From: John Jacques <john.jacques at intel.com>

Fix compile warning in drivers/of/fdt.c:
   'return with a value, in function returning void'

Signed-off-by: John Jacques <john.jacques at intel.com>
---
 drivers/of/fdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index 63ea1e5..26f5147 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -413,7 +413,7 @@ static void __unflatten_device_tree(void *blob,
 	/* Allocate memory for the expanded device tree */
 	mem = dt_alloc(size + 4, __alignof__(struct device_node));
 	if (!mem)
-		return NULL;
+		return;
 
 	memset(mem, 0, size);
 
-- 
2.7.4



More information about the linux-yocto mailing list