validatefs: do not use EXIT_* in run()

The plain DEFINE_MAIN_FUNCTION is used, i.e. all >= 0 retvals
are treated as success. No need for EXIT_* annotations.
This commit is contained in:
Mike Yuan
2025-03-31 19:23:50 +02:00
parent 7b8d6fc836
commit 8950f7651e
+2 -6
View File
@@ -318,14 +318,10 @@ static int run(int argc, char *argv[]) {
return r;
if (r == 0) {
log_info("File system '%s' has no validation constraints set, not validating.", resolved);
return EXIT_SUCCESS;
return 0;
}
r = validate_fields_check(target_fd, resolved, &f);
if (r < 0)
return r;
return EXIT_SUCCESS;
return validate_fields_check(target_fd, resolved, &f);
}
DEFINE_MAIN_FUNCTION(run);