From 8eb0098f4ccdd42dce60d7560ffa3b757b7ae561 Mon Sep 17 00:00:00 2001 From: Maxime Henrion 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 @@ vfs_nmount(td, fsflags, fsoptions) 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 @@ vfs_nmount(td, fsflags, fsoptions) 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.