diff --git a/fsck/main.c b/fsck/main.c index fe9ca55..f83a4af 100644 --- a/fsck/main.c +++ b/fsck/main.c @@ -275,8 +275,10 @@ void f2fs_parse_options(int argc, char *argv[]) atoi(optarg); break; case 'g': - if (!strcmp(optarg, "android")) + if (!strcmp(optarg, "android")) { c.defset = CONF_ANDROID; + MSG(0, "Info: Set conf for android\n"); + } break; case 'l': c.layout = 1; @@ -411,14 +413,6 @@ void f2fs_parse_options(int argc, char *argv[]) MSG(0, "Info: Debug level = %d\n", c.dbg_lv); break; - case 'g': - if (!strcmp(optarg, "android")) { - c.defset = CONF_ANDROID; - MSG(0, "Info: Set conf for android\n"); - break; - } - err = EWRONG_OPT; - break; case 'i': if (strncmp(optarg, "0x", 2)) ret = sscanf(optarg, "%d",