Commit 55b13354 authored by J. Bruce Fields's avatar J. Bruce Fields

nfsd: remove unused assignment from nfsd_link

Trivial cleanup, since "dest" is never used.
Reported-by: default avatarAnshul Madan <Anshul.Madan@netapp.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 43a9aa64
...@@ -1632,7 +1632,7 @@ nfsd_link(struct svc_rqst *rqstp, struct svc_fh *ffhp, ...@@ -1632,7 +1632,7 @@ nfsd_link(struct svc_rqst *rqstp, struct svc_fh *ffhp,
char *name, int len, struct svc_fh *tfhp) char *name, int len, struct svc_fh *tfhp)
{ {
struct dentry *ddir, *dnew, *dold; struct dentry *ddir, *dnew, *dold;
struct inode *dirp, *dest; struct inode *dirp;
__be32 err; __be32 err;
int host_err; int host_err;
...@@ -1660,7 +1660,6 @@ nfsd_link(struct svc_rqst *rqstp, struct svc_fh *ffhp, ...@@ -1660,7 +1660,6 @@ nfsd_link(struct svc_rqst *rqstp, struct svc_fh *ffhp,
goto out_nfserr; goto out_nfserr;
dold = tfhp->fh_dentry; dold = tfhp->fh_dentry;
dest = dold->d_inode;
host_err = mnt_want_write(tfhp->fh_export->ex_path.mnt); host_err = mnt_want_write(tfhp->fh_export->ex_path.mnt);
if (host_err) { if (host_err) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment