Skip to contentSkip to conversation

vfs ioctl: remove unnecessary variable

PATCH New Shaohua Li 1 participant 1 message Dec 8, 2010

Subsystems (2)
lore
Share & tools
lore

Shaohua Li

author
#0 lore raw

PATCH 1/1 vfs ioctl: remove unnecessary variable

remove unnecessary variable.

fs/ioctl.c +1 -2
index d6cc164..b3a710d 100644
@@ -585,8 +585,7 @@ int do_vfs_ioctl(struct file *filp, unsigned int fd, unsigned int cmd,
 	case FIGETBSZ:
 	{
 		struct inode *inode = filp->f_path.dentry->d_inode;
-		int __user *p = (int __user *)arg;
-		return put_user(inode->i_sb->s_blocksize, p);
+		return put_user(inode->i_sb->s_blocksize, argp);
 	}
 
 	default: