summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.m@jp.panasonic.com>2014-11-17 17:19:38 +0900
committerSimon Glass <sjg@chromium.org>2014-11-22 10:16:48 +0100
commitcbf86d719817c8adcd45a85ae84cd305bf835a42 (patch)
tree46eee6e77f5adb631f686673ca37cb59213b19a1 /drivers
parentd11e8fd86e0fe883cdc00e040bb9e1a67573cf4e (diff)
downloadu-boot-imx-cbf86d719817c8adcd45a85ae84cd305bf835a42.zip
u-boot-imx-cbf86d719817c8adcd45a85ae84cd305bf835a42.tar.gz
u-boot-imx-cbf86d719817c8adcd45a85ae84cd305bf835a42.tar.bz2
dm: core: a trivial clean up
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/core/root.c4
1 files changed, 1 insertions, 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