Skip to content

Commit

Permalink
leases: remove unneeded variable from fcntl_setlease().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David M. Richter authored and J. Bruce Fields committed Apr 25, 2008
1 parent 1908555 commit 9d91cdc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/locks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9d91cdc

Please sign in to comment.