summaryrefslogtreecommitdiff
path: root/cli_classic.c
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2012-10-23 13:06:46 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2012-10-23 13:06:46 +0000
commit4449d5040dd56b18dcad605192ac6e5273c2fb44 (patch)
tree8d94e7c1a9bfb6d05e5a79935724688e1d64638f /cli_classic.c
parent6dbdcd0c5aab035096510930a5d75b18260c8585 (diff)
downloadflashrom-4449d5040dd56b18dcad605192ac6e5273c2fb44.tar.gz
Remove exit calls from print_supported_chips.
Propagate the error code using return values instead, but let cli_classic.c still decide the ultimate return value of the process. Also, remove setting the ret value again after print_supported_wiki() - success is the default. Signed-off-by: Niklas Söderlund <niso@kth.se> Acked-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1614 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'cli_classic.c')
-rw-r--r--cli_classic.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cli_classic.c b/cli_classic.c
index 4ae375c..ccf75e9 100644
--- a/cli_classic.c
+++ b/cli_classic.c
@@ -357,14 +357,13 @@ int main(int argc, char *argv[])
#if CONFIG_PRINT_WIKI == 1
if (list_supported_wiki) {
print_supported_wiki();
- ret = 0;
goto out;
}
#endif
if (list_supported) {
- print_supported();
- ret = 0;
+ if (print_supported())
+ ret = 1;
goto out;
}