From: Daniel Wagner Date: Mon, 12 Jun 2017 10:50:49 +0000 (+0200) Subject: ftl_format: Use return directly to leave main function X-Git-Tag: v2.0.1~18 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9a357ee3b12e180ab116ac811c20c153e7aed254;p=mtd-utils.git 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 --- 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; }