From 82280594ef7e9dc908aa67f3da8661ff54a96c9e Mon Sep 17 00:00:00 2001 From: Daniel Rosenberg Date: Tue, 29 Apr 2014 13:45:05 -0700 Subject: [PATCH] fastboot: Fixed optional entries Previously, if an image was listed as optional, but was not found, flashall would fail. Now it will proceed if optional images are not present. Change-Id: Ic82595cf0cd6ddce4c676de590f03f1a95f32040 Signed-off-by: Daniel Rosenberg --- fastboot/fastboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c index 7f49ae91d..79d016686 100644 --- a/fastboot/fastboot.c +++ b/fastboot/fastboot.c @@ -657,7 +657,7 @@ static int load_buf(usb_handle *usb, const char *fname, fd = open(fname, O_RDONLY | O_BINARY); if (fd < 0) { - die("cannot open '%s'\n", fname); + return -1; } return load_buf_fd(usb, fd, buf);