summaryrefslogtreecommitdiff
path: root/misc-utils/ftl_format.c
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@siemens.com>2017-06-12 12:50:49 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2017-06-14 10:55:26 +0200
commit9a357ee3b12e180ab116ac811c20c153e7aed254 (patch)
tree77f43fd130dbc6b1a98149bb7bf51d2e3bc53967 /misc-utils/ftl_format.c
parent689060803f6c57637576e4a5f199b9ced32a4a4c (diff)
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 <daniel.wagner@siemens.com> Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'misc-utils/ftl_format.c')
-rw-r--r--misc-utils/ftl_format.c3
1 files changed, 1 insertions, 2 deletions
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;
}