All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [stable 3.18] fix __unflatten_device_tree warning
@ 2017-05-24 14:30 Arnd Bergmann
  2017-05-24 15:07 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Arnd Bergmann @ 2017-05-24 14:30 UTC (permalink / raw)
  To: gregkh; +Cc: stable, Arnd Bergmann

A backported patch needs to be modified for a context change

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

Fixes: 0aa459efa045 ("of: fdt: add missing allocation-failure check")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 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 e706bced9b6b..74c7aba476f6 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -381,7 +381,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.9.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-24 15:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-24 14:30 [PATCH] [stable 3.18] fix __unflatten_device_tree warning Arnd Bergmann
2017-05-24 15:07 ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.