From: Simon Glass Date: Thu, 18 May 2017 20:08:51 -0600 Subject: [U-Boot] [PATCH v3 01/72] dm: core: Set return value first in lists_bind_fdt() In-Reply-To: <20170519021002.1098-1-sjg@chromium.org> References: <20170519021002.1098-1-sjg@chromium.org> Message-ID: <20170519021002.1098-2-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Adjust the order to make it clear that *devp is set to NULL by default. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: None drivers/core/lists.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/core/lists.c b/drivers/core/lists.c index 23b6ba78d3..72c55e205f 100644 --- 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) { -- 2.13.0.303.g4ebf302169-goog