Remove one of sound/oss/cmpci.c compile warnings
PATCH 1/1 Remove one of sound/oss/cmpci.c compile warnings
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
sound/oss/cmpci.c renamed from sound/oss/cmpci.c.orig +3 -1
@@ -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 ;