From 9a357ee3b12e180ab116ac811c20c153e7aed254 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Mon, 12 Jun 2017 12:50:49 +0200 Subject: ftl_format: Use return directly to leave main function We can use return with the exit code instead of the sliglty odd exit, return pattern. Signed-off-by: Daniel Wagner Signed-off-by: David Oberhollenzer --- misc-utils/ftl_format.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'misc-utils') diff --git a/misc-utils/ftl_format.c b/misc-utils/ftl_format.c index 74322c7..649984b 100644 --- a/misc-utils/ftl_format.c +++ b/misc-utils/ftl_format.c @@ -333,6 +333,5 @@ int main(int argc, char *argv[]) } close(fd); - exit((ret) ? EXIT_FAILURE : EXIT_SUCCESS); - return 0; + return ret ? EXIT_FAILURE : EXIT_SUCCESS; } -- cgit v1.2.3