[PATCH] eliminate warnings from unused variable in matrox frame buffer

DORMANTno replies

From: Stephen Hemminger <hidden>
Date: 2004-06-07 17:13:17

The parameter 'inverse' is defined and never used, therefore it can be removed.
This gets rid of a compiler warning when matrox fb is built as a module.

diff -Nru a/drivers/video/matrox/matroxfb_base.c b/drivers/video/matrox/matroxfb_base.c
--- a/drivers/video/matrox/matroxfb_base.c	2004-06-07 10:08:03 -07:00
+++ b/drivers/video/matrox/matroxfb_base.c	2004-06-07 10:08:03 -07:00
@@ -1247,7 +1247,6 @@
 static int novga;			/* "matrox:novga" */
 static int nobios;			/* "matrox:nobios" */
 static int noinit = 1;			/* "matrox:init" */
-static int inverse;			/* "matrox:inverse" */
 static int sgram;			/* "matrox:sgram" */
 #ifdef CONFIG_MTRR
 static int mtrr = 1;			/* "matrox:nomtrr" */
@@ -2376,9 +2375,7 @@
 				value = 0;
 				this_opt += 2;
 			}
-			if (! strcmp(this_opt, "inverse"))
-				inverse = value;
-			else if (!strcmp(this_opt, "accel"))
+			if (!strcmp(this_opt, "accel"))
 				noaccel = !value;
 			else if (!strcmp(this_opt, "pan"))
 				nopan = !value;
@@ -2459,8 +2456,6 @@
 MODULE_PARM_DESC(sgram, "Indicates that G100/G200/G400 has SGRAM memory (0=SDRAM, 1=SGRAM) (default=0)");
 MODULE_PARM(inv24, "i");
 MODULE_PARM_DESC(inv24, "Inverts clock polarity for 24bpp and loop frequency > 100MHz (default=do not invert polarity)");
-MODULE_PARM(inverse, "i");
-MODULE_PARM_DESC(inverse, "Inverse (0 or 1) (default=0)");
 #ifdef CONFIG_FB_MATROX_MULTIHEAD
 MODULE_PARM(dev, "i");
 MODULE_PARM_DESC(dev, "Multihead support, attach to device ID (0..N) (default=all working)");


-------------------------------------------------------
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help