From 8ba975c439aebe9d6f4c3a56a1ca957f258c14c4 Mon Sep 17 00:00:00 2001 From: mux Date: Tue, 28 May 2002 13:27:55 +0000 Subject: [PATCH] Remove a duplicated vfs_freeopts() that I introduced in last revision. --- sys/kern/vfs_extattr.c | 3 +-- sys/kern/vfs_syscalls.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index af10229487b1..e994b37684fb 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -571,8 +571,7 @@ update: if (mp->mnt_opt != NULL) vfs_freeopts(mp->mnt_opt); mp->mnt_opt = mp->mnt_optnew; - } else - vfs_freeopts(mp->mnt_optnew); + } /* * Prevent external consumers of mount * options to read mnt_optnew. diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index af10229487b1..e994b37684fb 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -571,8 +571,7 @@ update: if (mp->mnt_opt != NULL) vfs_freeopts(mp->mnt_opt); mp->mnt_opt = mp->mnt_optnew; - } else - vfs_freeopts(mp->mnt_optnew); + } /* * Prevent external consumers of mount * options to read mnt_optnew.