提交 20fc30b9 编写于 作者: A Aaro Koskinen 提交者: Greg Kroah-Hartman

staging: xgifb: delete duplicated code

Delete redundant branches for "mode" and "vesa" options.
Signed-off-by: NAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 3f5042df
...@@ -1954,11 +1954,6 @@ static int __init XGIfb_setup(char *options) ...@@ -1954,11 +1954,6 @@ static int __init XGIfb_setup(char *options)
} else if (!strncmp(this_opt, "vesa:", 5)) { } else if (!strncmp(this_opt, "vesa:", 5)) {
XGIfb_search_vesamode(simple_strtoul( XGIfb_search_vesamode(simple_strtoul(
this_opt + 5, NULL, 0)); this_opt + 5, NULL, 0));
} else if (!strncmp(this_opt, "mode:", 5)) {
XGIfb_search_mode(this_opt + 5);
} else if (!strncmp(this_opt, "vesa:", 5)) {
XGIfb_search_vesamode(simple_strtoul(
this_opt + 5, NULL, 0));
} else if (!strncmp(this_opt, "vrate:", 6)) { } else if (!strncmp(this_opt, "vrate:", 6)) {
xgi_video_info.refresh_rate = simple_strtoul( xgi_video_info.refresh_rate = simple_strtoul(
this_opt + 6, NULL, 0); this_opt + 6, NULL, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册