summaryrefslogtreecommitdiff
path: root/drivers/core
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/core
parentd11e8fd86e0fe883cdc00e040bb9e1a67573cf4e (diff)
downloadu-boot-cbf86d719817c8adcd45a85ae84cd305bf835a42.tar.gz
u-boot-cbf86d719817c8adcd45a85ae84cd305bf835a42.tar.bz2
u-boot-cbf86d719817c8adcd45a85ae84cd305bf835a42.zip
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/core')
-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 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