diff options
author | David M. Richter <richterd@citi.umich.edu> | 2008-04-23 16:29:02 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-04-25 12:58:22 -0400 |
commit | 9d91cdcc0cce3186742f38e7352459b2087fbb86 (patch) | |
tree | d2062fef7a3d62c74e7b8ea6810f6bc141f9b7e8 /fs | |
parent | 190855576743a510219fc67886dace29b825d8cb (diff) |
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 <richterd@citi.umich.edu>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/locks.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); | |||
1493 | int fcntl_setlease(unsigned int fd, struct file *filp, long arg) | 1493 | int fcntl_setlease(unsigned int fd, struct file *filp, long arg) |
1494 | { | 1494 | { |
1495 | struct file_lock fl, *flp = &fl; | 1495 | struct file_lock fl, *flp = &fl; |
1496 | struct dentry *dentry = filp->f_path.dentry; | 1496 | struct inode *inode = filp->f_path.dentry->d_inode; |
1497 | struct inode *inode = dentry->d_inode; | ||
1498 | int error; | 1497 | int error; |
1499 | 1498 | ||
1500 | locks_init_lock(&fl); | 1499 | locks_init_lock(&fl); |