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 <drosen@google.com>
This commit is contained in:
Daniel Rosenberg 2014-04-29 13:45:05 -07:00 committed by JP Abgrall
parent e6f3e9bd26
commit 82280594ef

View file

@ -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);