lkml.org 
[lkml]   [2005]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.6 patch] video/matrox/matroxfb_misc.c: remove dead code
The Coverity checker spotted this dead code.


Signed-off-by: Adrian Bunk <bunk@stusta.de>

---

drivers/video/matrox/matroxfb_misc.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)

--- linux-2.6.15-rc1-mm2-full/drivers/video/matrox/matroxfb_misc.c.old 2005-11-20 22:27:01.000000000 +0100
+++ linux-2.6.15-rc1-mm2-full/drivers/video/matrox/matroxfb_misc.c 2005-11-20 22:27:21.000000000 +0100
@@ -192,11 +192,8 @@
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 @@
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;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-11-21 00:17    [W:0.155 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site