nfs: Remove useless 'error' assignment
authorGeyslan G. Bem <geyslan@gmail.com>
Fri, 11 Oct 2013 20:15:54 +0000 (17:15 -0300)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 28 Oct 2013 22:16:55 +0000 (18:16 -0400)
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>
fs/nfs/unlink.c

index bb939edd4c998cb98b7aeb56ae1aa308e4d9009d..0c29b1bb393678819e33d1ef44d1602516157fab 100644 (file)
@@ -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,
@@ -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;