Skip to content

Commit

Permalink
nfsd: remove unused assignment from nfsd_link
Browse files Browse the repository at this point in the history
Trivial cleanup, since "dest" is never used.

Reported-by: Anshul Madan <Anshul.Madan@netapp.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
J. Bruce Fields committed Jul 23, 2010
1 parent 43a9aa6 commit 55b1335
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/nfsd/vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 55b1335

Please sign in to comment.