Commit 143da0ba authored by Stefan Reinauer's avatar Stefan Reinauer
Browse files

Pass on return values

Corresponding to flashrom svn r39 and coreboot v2 svn r2151.
parent 3a431602
......@@ -147,6 +147,7 @@ int main(int argc, char *argv[])
write_it = 0,
erase_it = 0,
verify_it = 0;
int ret = 0;
static struct option long_options[]= {
{ "read", 0, 0, 'r' },
......@@ -336,10 +337,10 @@ int main(int argc, char *argv[])
// ////////////////////////////////////////////////////////////
if (write_it)
flash->write(flash, buf);
ret |= flash->write(flash, buf);
if (verify_it)
verify_flash(flash, buf);
ret |= verify_flash(flash, buf);
return 0;
return ret;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment