Skip to content

Commit

Permalink
nfs: Remove useless 'error' assignment
Browse files Browse the repository at this point in the history
the 'error' variable was been assigned twice in vain.

Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Geyslan G. Bem authored and Trond Myklebust committed Oct 28, 2013
1 parent e3bfab1 commit 4f5829d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/nfs/unlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ nfs_sillyrename(struct inode *dir, struct dentry *dentry)
unsigned long long fileid;
struct dentry *sdentry;
struct rpc_task *task;
int error = -EIO;
int error = -EBUSY;

dfprintk(VFS, "NFS: silly-rename(%s/%s, ct=%d)\n",
dentry->d_parent->d_name.name, dentry->d_name.name,
Expand All @@ -503,7 +503,6 @@ nfs_sillyrename(struct inode *dir, struct dentry *dentry)
/*
* We don't allow a dentry to be silly-renamed twice.
*/
error = -EBUSY;
if (dentry->d_flags & DCACHE_NFSFS_RENAMED)
goto out;

Expand Down

0 comments on commit 4f5829d

Please sign in to comment.