Commit 84a6c46e authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Greg Kroah-Hartman

staging: xgifb: eliminate filter_tb global variable

filter_tb is only used inside a single function, and it does not need
to be static.
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c11d0ef3
...@@ -565,6 +565,5 @@ static const struct _XGI_TV_filter { ...@@ -565,6 +565,5 @@ static const struct _XGI_TV_filter {
}; };
static int filter = -1; static int filter = -1;
static unsigned char filter_tb;
#endif #endif
...@@ -946,6 +946,8 @@ static void XGIfb_post_setmode(struct xgifb_video_info *xgifb_info) ...@@ -946,6 +946,8 @@ static void XGIfb_post_setmode(struct xgifb_video_info *xgifb_info)
reg = xgifb_reg_get(XGIPART4, 0x01); reg = xgifb_reg_get(XGIPART4, 0x01);
if (reg < 0xB0) { /* Set filter for XGI301 */ if (reg < 0xB0) { /* Set filter for XGI301 */
int filter_tb;
switch (xgifb_info->video_width) { switch (xgifb_info->video_width) {
case 320: case 320:
filter_tb = (xgifb_info->TV_type == filter_tb = (xgifb_info->TV_type ==
...@@ -964,6 +966,7 @@ static void XGIfb_post_setmode(struct xgifb_video_info *xgifb_info) ...@@ -964,6 +966,7 @@ static void XGIfb_post_setmode(struct xgifb_video_info *xgifb_info)
TVMODE_NTSC) ? 7 : 15; TVMODE_NTSC) ? 7 : 15;
break; break;
default: default:
filter_tb = 0;
filter = -1; filter = -1;
break; break;
} }
......
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