* [2.6 patch] video/matrox/matroxfb_misc.c: remove dead code
@ 2005-11-20 23:15 Adrian Bunk
0 siblings, 0 replies; 3+ messages in thread
From: Adrian Bunk @ 2005-11-20 23:15 UTC (permalink / raw)
To: vandrove; +Cc: linux-fbdev-devel, adaplas, linux-kernel
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;
^ permalink raw reply [flat|nested] 3+ messages in thread
* [2.6 patch] video/matrox/matroxfb_misc.c: remove dead code
@ 2005-12-13 2:28 ` Adrian Bunk
0 siblings, 0 replies; 3+ messages in thread
From: Adrian Bunk @ 2005-12-13 2:28 UTC (permalink / raw)
To: Andrew Morton; +Cc: vandrove, linux-fbdev-devel, adaplas, linux-kernel
The Coverity checker spotted this dead code.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
This patch was already sent on:
- 21 Nov 2005
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;
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [2.6 patch] video/matrox/matroxfb_misc.c: remove dead code
@ 2005-12-13 2:28 ` Adrian Bunk
0 siblings, 0 replies; 3+ messages in thread
From: Adrian Bunk @ 2005-12-13 2:28 UTC (permalink / raw)
To: Andrew Morton; +Cc: vandrove, linux-fbdev-devel, adaplas, linux-kernel
The Coverity checker spotted this dead code.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
This patch was already sent on:
- 21 Nov 2005
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;
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-13 2:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-13 2:28 [2.6 patch] video/matrox/matroxfb_misc.c: remove dead code Adrian Bunk
2005-12-13 2:28 ` Adrian Bunk
-- strict thread matches above, loose matches on Subject: below --
2005-11-20 23:15 Adrian Bunk
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.