summaryrefslogtreecommitdiffstats
path: root/block/compat_ioctl.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-10-23 10:28:25 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-23 10:28:25 -0700
commit5f4f0c4d3fc95cb7d509e4469a22aed40532f0fc (patch)
treef780c6faa1ea3995c1b2a626fae595b078ffde2e /block/compat_ioctl.c
parent54d822a6169b76b807b8cdbbf76ff2812a88947f (diff)
downloadop-kernel-dev-5f4f0c4d3fc95cb7d509e4469a22aed40532f0fc.zip
op-kernel-dev-5f4f0c4d3fc95cb7d509e4469a22aed40532f0fc.tar.gz
compat_blkdev_driver_ioctl: Remove unused variable warning
Variable 'ret' is no longer used. Don't declare it. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'block/compat_ioctl.c')
-rw-r--r--block/compat_ioctl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/block/compat_ioctl.c b/block/compat_ioctl.c
index 3098c92..3d3e7a4 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:
OpenPOWER on IntegriCloud