From: David M. Richter Date: Wed, 23 Apr 2008 20:29:02 +0000 (-0400) Subject: leases: remove unneeded variable from fcntl_setlease(). X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9d91cdcc0cce3186742f38e7352459b2087fbb86;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git leases: remove unneeded variable from fcntl_setlease(). fcntl_setlease() has a struct dentry* that is used only once; this patch removes it. Signed-off-by: David M. Richter Signed-off-by: J. Bruce Fields --- diff --git a/fs/locks.c b/fs/locks.c index 6a132cd4fa57..2e0fa661e423 100644 --- a/fs/locks.c +++ b/fs/locks.c @@ -1493,8 +1493,7 @@ EXPORT_SYMBOL_GPL(vfs_setlease); int fcntl_setlease(unsigned int fd, struct file *filp, long arg) { struct file_lock fl, *flp = &fl; - struct dentry *dentry = filp->f_path.dentry; - struct inode *inode = dentry->d_inode; + struct inode *inode = filp->f_path.dentry->d_inode; int error; locks_init_lock(&fl);