Remove unused code.

Submitted by:	Bjoern A. Zeeb
This commit is contained in:
Pawel Jakub Dawidek 2004-06-07 12:19:55 +00:00
parent 35641ec00f
commit 79db0f1cbf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130187
2 changed files with 2 additions and 12 deletions

View File

@ -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)));
}

View File

@ -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)));
}