aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-01-09 23:54:48 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-10 11:02:02 -0500
commit51d53bd3eb82b953bfd58d0e9c935c34dfb34808 (patch)
treec51a352506add19d2c1da0bade66bd1c961ad07e /drivers/video
parentca5ed2f5c7bf3ca51598336fcc1436b5da129f34 (diff)
[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 d9d3e9f6c08e..455a46ce840c 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) {
192 unsigned int wd; 192 unsigned int wd;
193 unsigned int divider; 193 unsigned int divider;
194 int i; 194 int i;
195 int fwidth;
196 struct matrox_hw_state * const hw = &ACCESS_FBINFO(hw); 195 struct matrox_hw_state * const hw = &ACCESS_FBINFO(hw);
197 196
198 fwidth = 8;
199
200 DBG(__FUNCTION__) 197 DBG(__FUNCTION__)
201 198
202 hw->SEQ[0] = 0x00; 199 hw->SEQ[0] = 0x00;
@@ -235,10 +232,7 @@ int matroxfb_vgaHWinit(WPMINFO struct my_timming* m) {
235 hw->ATTR[16] = 0x41; 232 hw->ATTR[16] = 0x41;
236 hw->ATTR[17] = 0xFF; 233 hw->ATTR[17] = 0xFF;
237 hw->ATTR[18] = 0x0F; 234 hw->ATTR[18] = 0x0F;
238 if (fwidth == 9) 235 hw->ATTR[19] = 0x00;
239 hw->ATTR[19] = 0x08;
240 else
241 hw->ATTR[19] = 0x00;
242 hw->ATTR[20] = 0x00; 236 hw->ATTR[20] = 0x00;
243 237
244 hd = m->HDisplay >> 3; 238 hd = m->HDisplay >> 3;