Commit 4f5829d7 authored by Geyslan G. Bem's avatar Geyslan G. Bem Committed by Trond Myklebust

nfs: Remove useless 'error' assignment

the 'error' variable was been assigned twice in vain.
Signed-off-by: default avatarGeyslan G. Bem <geyslan@gmail.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent e3bfab18
...@@ -493,7 +493,7 @@ nfs_sillyrename(struct inode *dir, struct dentry *dentry) ...@@ -493,7 +493,7 @@ nfs_sillyrename(struct inode *dir, struct dentry *dentry)
unsigned long long fileid; unsigned long long fileid;
struct dentry *sdentry; struct dentry *sdentry;
struct rpc_task *task; struct rpc_task *task;
int error = -EIO; int error = -EBUSY;
dfprintk(VFS, "NFS: silly-rename(%s/%s, ct=%d)\n", dfprintk(VFS, "NFS: silly-rename(%s/%s, ct=%d)\n",
dentry->d_parent->d_name.name, dentry->d_name.name, dentry->d_parent->d_name.name, dentry->d_name.name,
...@@ -503,7 +503,6 @@ nfs_sillyrename(struct inode *dir, struct dentry *dentry) ...@@ -503,7 +503,6 @@ nfs_sillyrename(struct inode *dir, struct dentry *dentry)
/* /*
* We don't allow a dentry to be silly-renamed twice. * We don't allow a dentry to be silly-renamed twice.
*/ */
error = -EBUSY;
if (dentry->d_flags & DCACHE_NFSFS_RENAMED) if (dentry->d_flags & DCACHE_NFSFS_RENAMED)
goto out; goto out;
......
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