Messages in this thread | | | From | Rusty Russell <> | Subject | Re: [PATCH] Remove one of sound/oss/cmpci.c compile warnings | Date | Sun, 02 Nov 2003 16:05:16 +1100 |
| |
In message <Pine.LNX.4.58.0310282002530.4918@dsl-hkigw4g29.dial.inet.fi> you write: > 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. - 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/
| |