mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
dm: core: Set return value first in lists_bind_fdt()
Adjust the order to make it clear that *devp is set to NULL by default. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
0e513e788f
commit
01b120b639
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue