* [patch]vfs ioctl: remove unnecessary variable
@ 2010-12-08 5:45 Shaohua Li
0 siblings, 0 replies; only message in thread
From: Shaohua Li @ 2010-12-08 5:45 UTC (permalink / raw)
To: linux-fsdevel; +Cc: viro
remove unnecessary variable.
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
diff --git a/fs/ioctl.c b/fs/ioctl.c
index d6cc164..b3a710d 100644
--- a/fs/ioctl.c
+++ b/fs/ioctl.c
@@ -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:
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-12-08 5:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-08 5:45 [patch]vfs ioctl: remove unnecessary variable Shaohua Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).