mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-26 22:52:34 +02:00
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>
This commit is contained in:
parent
4099a8a891
commit
9e42376c38
@ -1787,7 +1787,10 @@ int doit(struct flashctx *flash, int force, const char *filename, int read_it,
|
||||
|
||||
#if CONFIG_INTERNAL == 1
|
||||
if (programmer == PROGRAMMER_INTERNAL)
|
||||
show_id(newcontents, size, force);
|
||||
if (show_id(newcontents, size, force)) {
|
||||
ret = 1;
|
||||
goto out;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user