[-mm patch] sound/oss/soundcard.c: remove an unused variable

From: Adrian Bunk
Date: Mon Mar 07 2005 - 20:16:43 EST


On Fri, Mar 04, 2005 at 03:32:15AM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.11-rc5-mm1:
>...
> +verify_area-cleanup-sound.patch
>...
> Replace verify_area() with access_ok() in lots of places.
>...


This causes the following compile warning:

<-- snip -->

...
CC sound/oss/soundcard.o
sound/oss/soundcard.c: In function `sound_ioctl':
sound/oss/soundcard.c:332: warning: unused variable `err'
...

<-- snip -->

Trivial fix:


<-- snip -->


This patch removes an unused variable.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

--- linux-2.6.11-mm1-full/sound/oss/soundcard.c.old 2005-03-07 23:52:35.000000000 +0100
+++ linux-2.6.11-mm1-full/sound/oss/soundcard.c 2005-03-07 23:52:42.000000000 +0100
@@ -329,7 +329,7 @@
static int sound_ioctl(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long arg)
{
- int err, len = 0, dtype;
+ int len = 0, dtype;
int dev = iminor(inode);
void __user *p = (void __user *)arg;


-
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/