Skip to contentSkip to conversation

block: remove unused variables

PATCH New Alexander Beregalov 1 participant 1 message Sep 17, 2008 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: remove unused variables

---

 block/compat_ioctl.c |    2 --
 block/ioctl.c        |    1 -
 2 files changed, 0 insertions(+), 3 deletions(-)
block/compat_ioctl.c +0 -2
index 504344d..ec2060f 100644
@@ -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:
block/ioctl.c +0 -1
index 0db89f9..9e84f36 100644
@@ -268,7 +268,6 @@ static int blkdev_locked_ioctl(struct file *file, struct block_device *bdev,
 int blkdev_driver_ioctl(struct inode *inode, struct file *file,
 			struct gendisk *disk, unsigned cmd, unsigned long arg)
 {
-	int ret;
 	fmode_t mode = 0;
 	if (file) {
 		mode = file->f_mode;