projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e513e7
)
dm: core: Set return value first in lists_bind_fdt()
author
Simon Glass
<sjg@chromium.org>
Fri, 19 May 2017 02:08:51 +0000
(20:08 -0600)
committer
Simon Glass
<sjg@chromium.org>
Thu, 1 Jun 2017 13:03:05 +0000
(07:03 -0600)
Adjust the order to make it clear that *devp is set to NULL by default.
Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/lists.c
patch
|
blob
|
history
diff --git
a/drivers/core/lists.c
b/drivers/core/lists.c
index 23b6ba78d3b0b1876cf8b2ab58731bbe384d7e68..72c55e205f9f0fd9dda8516cda66e5455dcf4da1 100644
(file)
--- a/
drivers/core/lists.c
+++ b/
drivers/core/lists.c
@@
-140,10
+140,10
@@
int lists_bind_fdt(struct udevice *parent, const void *blob, int offset,
int result = 0;
int ret = 0;
- name = fdt_get_name(blob, offset, NULL);
- dm_dbg("bind node %s\n", name);
if (devp)
*devp = NULL;
+ name = fdt_get_name(blob, offset, NULL);
+ dm_dbg("bind node %s\n", name);
compat_list = fdt_getprop(blob, offset, "compatible", &compat_length);
if (!compat_list) {