Skip to contentSkip to conversation

Remove one of sound/oss/cmpci.c compile warnings

PATCH Rusty Russell 1 participant 1 message Nov 2, 2003 Sound

lore
Share & tools
lore
#0 lore raw

In message <[email protected]> you write:

Quoted 9 lines

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.

Because it doesn't. A better change would be:

VALIDATE_STATE((struct cm_state *)file->private_data);

Or to remove the entire function.

Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.