Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82280594 authored by Daniel Rosenberg's avatar Daniel Rosenberg Committed by JP Abgrall
Browse files

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: default avatarDaniel Rosenberg <drosen@google.com>
parent e6f3e9bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);