mirror of https://gitee.com/openkylin/linux.git
staging: xgifb: delete duplicated code
Delete redundant branches for "mode" and "vesa" options. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
3f5042dfb4
commit
20fc30b941
|
@ -1954,11 +1954,6 @@ static int __init XGIfb_setup(char *options)
|
|||
} else if (!strncmp(this_opt, "vesa:", 5)) {
|
||||
XGIfb_search_vesamode(simple_strtoul(
|
||||
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)) {
|
||||
xgi_video_info.refresh_rate = simple_strtoul(
|
||||
this_opt + 6, NULL, 0);
|
||||
|
|
Loading…
Reference in New Issue