Skip to contentSkip to conversation

video/matrox/matroxfb_misc.c: remove dead code

PATCH New Adrian Bunk 1 participant 1 message Dec 13, 2005 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 video/matrox/matroxfb_misc.c: remove dead code

The Coverity checker spotted this dead code.

---

This patch was already sent on:
- 21 Nov 2005

 drivers/video/matrox/matroxfb_misc.c |    8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/video/matrox/matroxfb_misc.c renamed from drivers/video/matrox/matroxfb_misc.c.old +1 -7
@@ -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;

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click