From: Seung-Woo Kim Date: Thu, 27 Oct 2016 02:38:56 +0000 (+0900) Subject: cmd: usbdown: pass through for nonexistent files X-Git-Tag: accepted/tizen/unified/20191107.062134~155 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6be5dbe4eef2ebab49cb64dd774baff39428a8a;p=platform%2Fkernel%2Fu-boot.git cmd: usbdown: pass through for nonexistent files After changing error value of update command with the commit f388818 ("cmd: usbdown: fix return value for cmd funtions"), the usbdown command stopped if there is nonexistent file. So this patch makes usbdown command pass through for nonexistent files. Change-Id: If1c53c1fca7879b2ed95a2298463eb7498f7b169 Signed-off-by: Seung-Woo Kim --- diff --git a/cmd/usbdown.c b/cmd/usbdown.c index 9f7c6c4..53fe805 100644 --- a/cmd/usbdown.c +++ b/cmd/usbdown.c @@ -366,7 +366,8 @@ int do_update(cmd_tbl_t *cmdtp, int flags, int argc, char * const argv[]) ret = fs_size(filename, &size); if (ret < 0) { printf("There is no %s\n", filename); - return CMD_RET_FAILURE; + /* if there is no file, then just pass through */ + return CMD_RET_SUCCESS; } usbdown = usbdown_get_entity(alt_num);