[U-Boot] [PATCH 1/8] dm: core: a trivial clean up

Masahiro Yamada yamada.m at jp.panasonic.com
Mon Nov 17 09:19:38 CET 2014


Signed-off-by: Masahiro Yamada <yamada.m at jp.panasonic.com>
---

 drivers/core/root.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/core/root.c b/drivers/core/root.c
index a328a48..47b3acf 100644
--- a/drivers/core/root.c
+++ b/drivers/core/root.c
@@ -73,10 +73,8 @@ int dm_scan_platdata(bool pre_reloc_only)
 		dm_warn("Some drivers were not found\n");
 		ret = 0;
 	}
-	if (ret)
-		return ret;
 
-	return 0;
+	return ret;
 }
 
 #ifdef CONFIG_OF_CONTROL
-- 
1.9.1



More information about the U-Boot mailing list