NFSD, VFS: Remove dead code in nfsd_rename()
diff mbox

Message ID alpine.LNX.2.00.1103060024380.6297@swampdragon.chaosbits.net
State RFC, archived
Headers show

Commit Message

Jesper Juhl March 5, 2011, 11:30 p.m. UTC
None

Patch
diff mbox

diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index da1d970..9cc626b 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -1749,8 +1749,6 @@  nfsd_rename(struct svc_rqst *rqstp, struct svc_fh *ffhp, char *fname, int flen,
 		if (host_err)
 			goto out_drop_write;
 	}
-	if (host_err)
-		goto out_drop_write;
 	host_err = vfs_rename(fdir, odentry, tdir, ndentry);
 	if (!host_err) {
 		host_err = commit_metadata(tfhp);