From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shaohua Li Subject: [patch]vfs ioctl: remove unnecessary variable Date: Wed, 08 Dec 2010 13:45:43 +0800 Message-ID: <1291787143.12777.157.camel@sli10-conroe> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: viro@zeniv.linux.org.uk To: linux-fsdevel@vger.kernel.org Return-path: Received: from mga09.intel.com ([134.134.136.24]:23469 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751983Ab0LHFpp (ORCPT ); Wed, 8 Dec 2010 00:45:45 -0500 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: remove unnecessary variable. Signed-off-by: Shaohua Li 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: