summaryrefslogtreecommitdiff
path: root/src/nsc_gx2_vga.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nsc_gx2_vga.c')
-rw-r--r--src/nsc_gx2_vga.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/nsc_gx2_vga.c b/src/nsc_gx2_vga.c
index 9e79e66..35b71b4 100644
--- a/src/nsc_gx2_vga.c
+++ b/src/nsc_gx2_vga.c
@@ -1,4 +1,4 @@
-/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nsc/nsc_gx2_vga.c,v 1.2 2003/01/14 09:34:32 alanh Exp $ */
+/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nsc/nsc_gx2_vga.c,v 1.2tsi Exp $ */
/*
* $Workfile: nsc_gx2_vga.c $
* $Revision$
@@ -227,12 +227,10 @@ gu2_vga_seq_blanking(void)
int
gu2_vga_attr_ctrl(int reset)
{
- int tmp;
-
- tmp = gfx_inb(0x3DA);
+ (void) gfx_inb(0x3DA);
gfx_outb(0x3C0, (unsigned char)(reset ? 0x00 : 0x20));
if (reset)
- tmp = gfx_inb(0x3DA);
+ (void) gfx_inb(0x3DA);
return (GFX_STATUS_OK);
}
@@ -250,7 +248,6 @@ gu2_vga_to_gfx(void)
void
gu2_gfx_to_vga(int vga_mode)
{
- int tmp;
char sequencer;
gu2_vga_extcrtc(0x40, vga_mode);
@@ -268,9 +265,9 @@ gu2_gfx_to_vga(int vga_mode)
gfx_outw(0x3C4, 0x300);
/* turn on the attribute controler */
- tmp = gfx_inb(0x3DA);
+ (void) gfx_inb(0x3DA);
gfx_outb(0x3C0, 0x20);
- tmp = gfx_inb(0x3DA);
+ (void) gfx_inb(0x3DA);
gu2_vga_extcrtc(0x3F, 0);
}