summaryrefslogtreecommitdiffstats
path: root/layout.c
diff options
context:
space:
mode:
authorNiklas Söderlund <niso@kth.se>2012-06-16 00:11:16 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2012-06-16 00:11:16 +0000
commit9e42376c384d1f81deac2cabd8fb423f902b42f4 (patch)
treef9a0004150190d234c13927e173878f302251412 /layout.c
parent4099a8a891cabc3f38f6c7dc60bc71a1fd76ec8a (diff)
downloadast2050-flashrom-9e42376c384d1f81deac2cabd8fb423f902b42f4.zip
ast2050-flashrom-9e42376c384d1f81deac2cabd8fb423f902b42f4.tar.gz
Remove exit() call from show_id
The only caller is able to check the return code and handle it correctly. Corresponding to flashrom svn r1545. Signed-off-by: Niklas Söderlund <niso@kth.se> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'layout.c')
-rw-r--r--layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/layout.c b/layout.c
index 379ee8c..0512638 100644
--- a/layout.c
+++ b/layout.c
@@ -137,7 +137,7 @@ int show_id(uint8_t *bios, int size, int force)
"\n\n",
mainboard_vendor, mainboard_part, lb_vendor,
lb_part);
- exit(1);
+ return 1;
}
}
OpenPOWER on IntegriCloud