dump.f2fs: remove unavailable option -g

Option "-g" for dump.f2fs is unavailable and not used in dump.f2fs.

Signed-off-by: Sheng Yong <shengyong@oppo.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Sheng Yong 2022-11-10 22:07:20 +08:00 committed by sunshenshen
parent 8247209800
commit eed09be1c4

View File

@ -275,8 +275,10 @@ void f2fs_parse_options(int argc, char *argv[])
atoi(optarg); atoi(optarg);
break; break;
case 'g': case 'g':
if (!strcmp(optarg, "android")) if (!strcmp(optarg, "android")) {
c.defset = CONF_ANDROID; c.defset = CONF_ANDROID;
MSG(0, "Info: Set conf for android\n");
}
break; break;
case 'l': case 'l':
c.layout = 1; c.layout = 1;
@ -411,14 +413,6 @@ void f2fs_parse_options(int argc, char *argv[])
MSG(0, "Info: Debug level = %d\n", MSG(0, "Info: Debug level = %d\n",
c.dbg_lv); c.dbg_lv);
break; 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': case 'i':
if (strncmp(optarg, "0x", 2)) if (strncmp(optarg, "0x", 2))
ret = sscanf(optarg, "%d", ret = sscanf(optarg, "%d",