pass on return values

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2151 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2006-01-04 16:42:57 +00:00
parent 260f1cc55d
commit 27897c7adc
1 changed files with 4 additions and 3 deletions

View File

@ -147,6 +147,7 @@ int main(int argc, char *argv[])
write_it = 0, write_it = 0,
erase_it = 0, erase_it = 0,
verify_it = 0; verify_it = 0;
int ret = 0;
static struct option long_options[]= { static struct option long_options[]= {
{ "read", 0, 0, 'r' }, { "read", 0, 0, 'r' },
@ -336,10 +337,10 @@ int main(int argc, char *argv[])
// //////////////////////////////////////////////////////////// // ////////////////////////////////////////////////////////////
if (write_it) if (write_it)
flash->write(flash, buf); ret |= flash->write(flash, buf);
if (verify_it) if (verify_it)
verify_flash(flash, buf); ret |= verify_flash(flash, buf);
return 0; return ret;
} }