浏览代码

[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>
Adrian Bunk 19 年之前
父节点
当前提交
51d53bd3eb
共有 1 个文件被更改,包括 1 次插入7 次删除
  1. 1 7
      drivers/video/matrox/matroxfb_misc.c

+ 1 - 7
drivers/video/matrox/matroxfb_misc.c

@@ -192,11 +192,8 @@ int matroxfb_vgaHWinit(WPMINFO struct my_timming* m) {
 	unsigned int wd;
 	unsigned int wd;
 	unsigned int divider;
 	unsigned int divider;
 	int i;
 	int i;
-	int fwidth;
 	struct matrox_hw_state * const hw = &ACCESS_FBINFO(hw);
 	struct matrox_hw_state * const hw = &ACCESS_FBINFO(hw);
 
 
-	fwidth = 8;
-
 	DBG(__FUNCTION__)
 	DBG(__FUNCTION__)
 
 
 	hw->SEQ[0] = 0x00;
 	hw->SEQ[0] = 0x00;
@@ -235,10 +232,7 @@ int matroxfb_vgaHWinit(WPMINFO struct my_timming* m) {
 	hw->ATTR[16] = 0x41;
 	hw->ATTR[16] = 0x41;
 	hw->ATTR[17] = 0xFF;
 	hw->ATTR[17] = 0xFF;
 	hw->ATTR[18] = 0x0F;
 	hw->ATTR[18] = 0x0F;
-	if (fwidth == 9)
-		hw->ATTR[19] = 0x08;
-	else
-		hw->ATTR[19] = 0x00;
+	hw->ATTR[19] = 0x00;
 	hw->ATTR[20] = 0x00;
 	hw->ATTR[20] = 0x00;
 
 
 	hd = m->HDisplay >> 3;
 	hd = m->HDisplay >> 3;