Skip to contentSkip to conversation

Trivial: mnt_want_write: Remove unused label out

PATCH New Kautuk Consul 1 participant 1 message Sep 23, 2011 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Trivial: mnt_want_write: Remove unused label out

I was studying the code and I saw that the out label is not being used at all so I removed it and its usage from the function.

---
 fs/namespace.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
fs/namespace.c +0 -2
index 22bfe82..2e906e9 100644
@@ -352,9 +352,7 @@ int mnt_want_write(struct vfsmount *mnt)
 	if (__mnt_is_readonly(mnt)) {
 		mnt_dec_writers(mnt);
 		ret = -EROFS;
-		goto out;
 	}
-out:
 	preempt_enable();
 	return ret;
 }
Signature · 1 line
1.7.4.1