[PATCH v0 08/20] mtd-utils: ftl_format: Use return directly to leave main function
Daniel Wagner
daniel.wagner at siemens.com
Mon Jun 12 03:50:49 PDT 2017
We can use return with the exit code instead of the sliglty odd exit,
return pattern.
Signed-off-by: Daniel Wagner <daniel.wagner at siemens.com>
---
misc-utils/ftl_format.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/misc-utils/ftl_format.c b/misc-utils/ftl_format.c
index 74322c7f03eb..649984b2a8cc 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;
}
--
2.9.4
More information about the linux-mtd
mailing list