[PATCH] Remove one of sound/oss/cmpci.c compile warnings

From: Petri Koistinen
Date: Tue Oct 28 2003 - 13:17:59 EST


Hi!

This patch removes this compile warning:

sound/oss/cmpci.c: In function `cm_release_mixdev':
sound/oss/cmpci.c:1465: warning: unused variable `s'

GCC doesn't seem to unstand that VALIDATE_STATE macro uses s variable.
I hope this is correct way to fix this.

Petri

--- linux-2.6/sound/oss/cmpci.c.orig 2003-10-28 19:54:27.000000000 +0200
+++ linux-2.6/sound/oss/cmpci.c 2003-10-28 19:55:50.000000000 +0200
@@ -1462,7 +1462,9 @@

static int cm_release_mixdev(struct inode *inode, struct file *file)
{
- struct cm_state *s = (struct cm_state *)file->private_data;
+ struct cm_state *s;
+
+ s = (struct cm_state *)file->private_data;

VALIDATE_STATE(s);
return 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/