mirror of
https://gitee.com/openharmony/third_party_f2fs-tools
synced 2024-11-23 10:10:00 +00:00
f2fs-tools: skipped to end on error syntax error
When error were found, we won't need to do any initialization but just quit. Signed-off-by: Robin Hsu <robinhsu@google.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
31d30f0c49
commit
fcd5cd0b52
@ -597,6 +597,7 @@ void f2fs_parse_options(int argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
if (err == NOERROR) {
|
||||
add_default_options();
|
||||
|
||||
if (optind >= argc) {
|
||||
@ -611,6 +612,7 @@ void f2fs_parse_options(int argc, char *argv[])
|
||||
}
|
||||
if (err == NOERROR)
|
||||
return;
|
||||
}
|
||||
|
||||
/* print out error */
|
||||
switch (err) {
|
||||
|
Loading…
Reference in New Issue
Block a user