summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-01-09 20:54:48 -0800
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 08:02:02 -0800
commit51d53bd3eb82b953bfd58d0e9c935c34dfb34808 (patch)
treec51a352506add19d2c1da0bade66bd1c961ad07e /drivers/video
parentca5ed2f5c7bf3ca51598336fcc1436b5da129f34 (diff)
downloadlinux-3.10-51d53bd3eb82b953bfd58d0e9c935c34dfb34808.tar.gz
linux-3.10-51d53bd3eb82b953bfd58d0e9c935c34dfb34808.tar.bz2
linux-3.10-51d53bd3eb82b953bfd58d0e9c935c34dfb34808.zip
[PATCH] video/matrox/matroxfb_misc.c: remove dead code
The Coverity checker spotted this dead code. Signed-off-by: Adrian Bunk <bunk@stusta.de> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/matrox/matroxfb_misc.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/video/matrox/matroxfb_misc.c b/drivers/video/matrox/matroxfb_misc.c
index d9d3e9f6c08..455a46ce840 100644
--- a/drivers/video/matrox/matroxfb_misc.c
+++ b/drivers/video/matrox/matroxfb_misc.c
@@ -192,11 +192,8 @@ int matroxfb_vgaHWinit(WPMINFO struct my_timming* m) {
unsigned int wd;
unsigned int divider;
int i;
- int fwidth;
struct matrox_hw_state * const hw = &ACCESS_FBINFO(hw);
- fwidth = 8;
-
DBG(__FUNCTION__)
hw->SEQ[0] = 0x00;
@@ -235,10 +232,7 @@ int matroxfb_vgaHWinit(WPMINFO struct my_timming* m) {
hw->ATTR[16] = 0x41;
hw->ATTR[17] = 0xFF;
hw->ATTR[18] = 0x0F;
- if (fwidth == 9)
- hw->ATTR[19] = 0x08;
- else
- hw->ATTR[19] = 0x00;
+ hw->ATTR[19] = 0x00;
hw->ATTR[20] = 0x00;
hd = m->HDisplay >> 3;