diff options
author | pjd <pjd@FreeBSD.org> | 2004-06-07 12:19:55 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2004-06-07 12:19:55 +0000 |
commit | c66d0ff628309aafdce92bac5a283310d7f823c9 (patch) | |
tree | 7f50ac65f36532e245967c1d8286340e6e5e9443 /sys/kern | |
parent | 68060b2236dc8453f4a0471f0b41e12e21711d18 (diff) | |
download | FreeBSD-src-c66d0ff628309aafdce92bac5a283310d7f823c9.zip FreeBSD-src-c66d0ff628309aafdce92bac5a283310d7f823c9.tar.gz |
Remove unused code.
Submitted by: Bjoern A. Zeeb
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_extattr.c | 7 | ||||
-rw-r--r-- | sys/kern/vfs_syscalls.c | 7 |
2 files changed, 2 insertions, 12 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index 395d168..3ce9c98 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -4097,7 +4097,7 @@ fhstatfs(td, uap) struct statfs *buf; } */ *uap; { - struct statfs *sp, sb; + struct statfs *sp; struct mount *mp; struct vnode *vp; fhandle_t fh; @@ -4128,11 +4128,6 @@ fhstatfs(td, uap) sp->f_flags = mp->mnt_flag & MNT_VISFLAGMASK; if ((error = VFS_STATFS(mp, sp, td)) != 0) return (error); - if (suser(td)) { - bcopy(sp, &sb, sizeof(sb)); - sb.f_fsid.val[0] = sb.f_fsid.val[1] = 0; - sp = &sb; - } return (copyout(sp, uap->buf, sizeof(*sp))); } diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 395d168..3ce9c98 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -4097,7 +4097,7 @@ fhstatfs(td, uap) struct statfs *buf; } */ *uap; { - struct statfs *sp, sb; + struct statfs *sp; struct mount *mp; struct vnode *vp; fhandle_t fh; @@ -4128,11 +4128,6 @@ fhstatfs(td, uap) sp->f_flags = mp->mnt_flag & MNT_VISFLAGMASK; if ((error = VFS_STATFS(mp, sp, td)) != 0) return (error); - if (suser(td)) { - bcopy(sp, &sb, sizeof(sb)); - sb.f_fsid.val[0] = sb.f_fsid.val[1] = 0; - sp = &sb; - } return (copyout(sp, uap->buf, sizeof(*sp))); } |