diff mbox

[U-Boot,v2] thor: defer parsing of device string to IO backend

Message ID 1403509156-18822-1-git-send-email-l.majewski@samsung.com
State Accepted
Delegated to: Minkyu Kang
Headers show

Commit Message

Łukasz Majewski June 23, 2014, 7:39 a.m. UTC
Commit d4f5ef59cc7 "dfu: defer parsing of device string to IO backend" changed
the function signature of dfu_init_env_entities(). Adjust cmd_thordown.c
to match that change.

Also, apply the same change as commit d6d37d737b58e "dfu: free entities
when parsing fails" to cmd_thordown.c.

Fixes: d4f5ef59cc7 ("dfu: defer parsing of device string to IO backend")

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
---
 common/cmd_thordown.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Stephen Warren June 23, 2014, 7:02 p.m. UTC | #1
On 06/23/2014 01:39 AM, Lukasz Majewski wrote:
> Commit d4f5ef59cc7 "dfu: defer parsing of device string to IO backend" changed
> the function signature of dfu_init_env_entities(). Adjust cmd_thordown.c
> to match that change.
> 
> Also, apply the same change as commit d6d37d737b58e "dfu: free entities
> when parsing fails" to cmd_thordown.c.
> 
> Fixes: d4f5ef59cc7 ("dfu: defer parsing of device string to IO backend")
> 
> Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>

Both the fixes and s-o-b tag should be in the same final paragraph with
no blank lines between. I assume that can be easily fixed up when applying.

Reviewed-by: Stephen Warren <swarren@nvidia.com>
Łukasz Majewski June 25, 2014, 7:07 a.m. UTC | #2
Hi Stephen,

> On 06/23/2014 01:39 AM, Lukasz Majewski wrote:
> > Commit d4f5ef59cc7 "dfu: defer parsing of device string to IO
> > backend" changed the function signature of dfu_init_env_entities().
> > Adjust cmd_thordown.c to match that change.
> > 
> > Also, apply the same change as commit d6d37d737b58e "dfu: free
> > entities when parsing fails" to cmd_thordown.c.
> > 
> > Fixes: d4f5ef59cc7 ("dfu: defer parsing of device string to IO
> > backend")
> > 
> > Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
> 
> Both the fixes and s-o-b tag should be in the same final paragraph
> with no blank lines between. I assume that can be easily fixed up
> when applying.
> 
> Reviewed-by: Stephen Warren <swarren@nvidia.com>

Applied to u-boot-dfu,
diff mbox

Patch

diff --git a/common/cmd_thordown.c b/common/cmd_thordown.c
index 96f7d32..27927ba 100644
--- a/common/cmd_thordown.c
+++ b/common/cmd_thordown.c
@@ -26,10 +26,9 @@  int do_thor_down(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 	puts("TIZEN \"THOR\" Downloader\n");
 
-	ret = dfu_init_env_entities(interface, simple_strtoul(devstring,
-							      NULL, 10));
+	ret = dfu_init_env_entities(interface, devstring);
 	if (ret)
-		return ret;
+		goto done;
 
 	int controller_index = simple_strtoul(usb_controller, NULL, 0);
 	ret = board_usb_init(controller_index, USB_INIT_DEVICE);
@@ -57,6 +56,7 @@  int do_thor_down(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 exit:
 	g_dnl_unregister();
+done:
 	dfu_free_entities();
 
 	return ret;