Commit 55b13354d789dcf0b85db6d86fc3a9e57dca02c1
1 parent
43a9aa64a2
Exists in
master
and in
4 other branches
nfsd: remove unused assignment from nfsd_link
Trivial cleanup, since "dest" is never used. Reported-by: Anshul Madan <Anshul.Madan@netapp.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
fs/nfsd/vfs.c
... | ... | @@ -1632,7 +1632,7 @@ |
1632 | 1632 | char *name, int len, struct svc_fh *tfhp) |
1633 | 1633 | { |
1634 | 1634 | struct dentry *ddir, *dnew, *dold; |
1635 | - struct inode *dirp, *dest; | |
1635 | + struct inode *dirp; | |
1636 | 1636 | __be32 err; |
1637 | 1637 | int host_err; |
1638 | 1638 | |
... | ... | @@ -1660,7 +1660,6 @@ |
1660 | 1660 | goto out_nfserr; |
1661 | 1661 | |
1662 | 1662 | dold = tfhp->fh_dentry; |
1663 | - dest = dold->d_inode; | |
1664 | 1663 | |
1665 | 1664 | host_err = mnt_want_write(tfhp->fh_export->ex_path.mnt); |
1666 | 1665 | if (host_err) { |