From: Linus Torvalds Date: Thu, 23 Oct 2008 17:28:25 +0000 (-0700) Subject: compat_blkdev_driver_ioctl: Remove unused variable warning X-Git-Tag: v2.6.28-rc1~21 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?p=linux-2.6-omap-h63xx.git;a=commitdiff_plain;h=5f4f0c4d3fc95cb7d509e4469a22aed40532f0fc compat_blkdev_driver_ioctl: Remove unused variable warning Variable 'ret' is no longer used. Don't declare it. Signed-off-by: Linus Torvalds --- diff --git a/block/compat_ioctl.c b/block/compat_ioctl.c index 3098c92402f..3d3e7a46f38 100644 --- a/block/compat_ioctl.c +++ b/block/compat_ioctl.c @@ -582,8 +582,6 @@ static int compat_blk_trace_setup(struct block_device *bdev, char __user *arg) static int compat_blkdev_driver_ioctl(struct block_device *bdev, fmode_t mode, unsigned cmd, unsigned long arg) { - int ret; - switch (cmd) { case HDIO_GET_UNMASKINTR: case HDIO_GET_MULTCOUNT: