Commit 35c064da authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Greg Kroah-Hartman

staging: xgifb: delete duplicated default video mode setup code

The code for determining the default video mode is unnecessarily
duplicated in XGIfb_search_mode() and XGIfb_search_vesamode() functions.
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 69a18698
......@@ -460,12 +460,6 @@ static void XGIfb_search_mode(const char *name)
if (!strcmp(name, XGIbios_mode[MODE_INDEX_NONE].name)) {
printk(KERN_ERR "XGIfb: Mode 'none' not supported anymore. Using default.\n");
xgifb_mode_idx = DEFAULT_MODE;
if ((xgi_video_info.chip == XG21)
&& ((xgi_video_info.disp_state & DISPTYPE_DISP2)
== DISPTYPE_LCD)) {
xgifb_mode_idx = XGIfb_GetXG21DefaultLVDSModeIdx();
}
return;
}
......@@ -489,12 +483,6 @@ static void XGIfb_search_vesamode(unsigned int vesamode)
if (vesamode == 0) {
printk(KERN_ERR "XGIfb: Mode 'none' not supported anymore. Using default.\n");
xgifb_mode_idx = DEFAULT_MODE;
if ((xgi_video_info.chip == XG21)
&& ((xgi_video_info.disp_state & DISPTYPE_DISP2)
== DISPTYPE_LCD)) {
xgifb_mode_idx = XGIfb_GetXG21DefaultLVDSModeIdx();
}
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment