Fix fastboot flashall

The return value of load_buf was swapped so we were erroneously
failing.

Bug: 29278988
Change-Id: I777bfbc174f50ec0b71e973db36543eb37d160db
This commit is contained in:
Alex Light 2016-06-29 15:37:29 -07:00
parent 4e6cf008c6
commit 2110d0aa08
1 changed files with 1 additions and 1 deletions

View File

@ -1168,7 +1168,7 @@ static void do_flashall(Transport* transport, const std::string& slot_override,
if (!slot) continue;
fname = find_item_given_name(images[i].img_name, product);
fastboot_buffer buf;
if (load_buf(transport, fname.c_str(), &buf)) {
if (!load_buf(transport, fname.c_str(), &buf)) {
if (images[i].is_optional) continue;
die("could not load %s\n", images[i].img_name);
}