lkml.org 
[lkml]   [2004]   [Mar]   [28]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSun, 28 Mar 2004 13:57:18 +0200
FromWilly TARREAU <>
Subject[PATCH-2.4.26] cmpci cleanup
Hi Marcelo,

compiling cmpci in 2.4.26-rc1 complains :

cmpci.c: In function `cm_probe':
cmpci.c:3308: warning: unused variable `reg_mask'

Here is the patch. Please apply,
Willy

--- ./drivers/sound/cmpci.c.orig	Sun Mar 28 11:19:12 2004
+++ ./drivers/sound/cmpci.c	Sun Mar 28 11:19:44 2004
@@ -3305,7 +3305,6 @@
 	struct cm_state *s;
 	mm_segment_t fs;
 	int i, val, ret;
-	unsigned char reg_mask = 0;
 	struct {
 		unsigned short	deviceid;
 		char		*devicename;
@@ -3381,6 +3380,7 @@
 		printk(KERN_ERR "cmpci: io ports %#x-%#x in use\n", s->iomidi, s->iomidi+CM_EXTENT_MIDI-1);
 		s->iomidi = 0;
 	    } else {
+		unsigned char reg_mask = 0;
 		/* set IO based at 0x330 */
 		switch (s->iomidi) {
 		    case 0x330:
@@ -3415,6 +3415,7 @@
 		printk(KERN_ERR "cmpci: io ports %#x-%#x in use\n", s->iosynth, s->iosynth+CM_EXTENT_SYNTH-1);
 		s->iosynth = 0;
 	    } else {
+		unsigned char reg_mask = 0;
 		/* set IO based at 0x388 */
 		switch (s->iosynth) {
 		    case 0x388:
-
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-03-22 13:02    [from the cache]
©2003-2008