summaryrefslogtreecommitdiffstats
path: root/flash_rom.c
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2006-01-04 16:42:57 +0000
committerStefan Reinauer <stefan.reinauer@coreboot.org>2006-01-04 16:42:57 +0000
commit143da0baaef41811592a3b50cd3e7ef2989d6473 (patch)
tree826471f7229f37c4c701719c21709181fe04d429 /flash_rom.c
parent3a431602df23999249e2240af0895d2c90f77050 (diff)
downloadast2050-flashrom-143da0baaef41811592a3b50cd3e7ef2989d6473.zip
ast2050-flashrom-143da0baaef41811592a3b50cd3e7ef2989d6473.tar.gz
Pass on return values
Corresponding to flashrom svn r39 and coreboot v2 svn r2151.
Diffstat (limited to 'flash_rom.c')
-rw-r--r--flash_rom.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/flash_rom.c b/flash_rom.c
index fb7d030..db3c2c9 100644
--- a/flash_rom.c
+++ b/flash_rom.c
@@ -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;
}
OpenPOWER on IntegriCloud