diff options
author | J. Bruce Fields <bfields@redhat.com> | 2010-07-19 16:38:24 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2010-07-23 08:50:39 -0400 |
commit | 55b13354d789dcf0b85db6d86fc3a9e57dca02c1 (patch) | |
tree | 54a3039de3de7fc2c532fdf8ece577a894aacea4 /fs/nfsd | |
parent | 43a9aa64a2f4330a9cb59aaf5c5636566bce067c (diff) | |
download | op-kernel-dev-55b13354d789dcf0b85db6d86fc3a9e57dca02c1.zip op-kernel-dev-55b13354d789dcf0b85db6d86fc3a9e57dca02c1.tar.gz |
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>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/vfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index e3611b5..5ca984b 100644 --- a/fs/nfsd/vfs.c +++ b/fs/nfsd/vfs.c @@ -1632,7 +1632,7 @@ nfsd_link(struct svc_rqst *rqstp, struct svc_fh *ffhp, char *name, int len, struct svc_fh *tfhp) { struct dentry *ddir, *dnew, *dold; - struct inode *dirp, *dest; + struct inode *dirp; __be32 err; int host_err; @@ -1660,7 +1660,6 @@ nfsd_link(struct svc_rqst *rqstp, struct svc_fh *ffhp, goto out_nfserr; dold = tfhp->fh_dentry; - dest = dold->d_inode; host_err = mnt_want_write(tfhp->fh_export->ex_path.mnt); if (host_err) { |