From: Masahiro Yamada Date: Mon, 17 Nov 2014 08:19:38 +0000 (+0900) Subject: dm: core: a trivial clean up X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=cbf86d719817c8adcd45a85ae84cd305bf835a42;p=u-boot.git dm: core: a trivial clean up Signed-off-by: Masahiro Yamada Acked-by: Simon Glass --- diff --git a/drivers/core/root.c b/drivers/core/root.c index a328a4876f..47b3acfbe9 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