summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_vfsops.c
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2007-09-20 12:54:32 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2007-09-20 12:54:32 +0000
commit35a7fe647ce46eafedd8a154db1b3b6c04c630a5 (patch)
treeb72d86f8c636b2132383a7135e63d7795f1c5d42 /sys/nfs/nfs_vfsops.c
parent2650f9c8b741b5eeac7830ef59dea2409937f8ed (diff)
MALLOC/FREE -> malloc/free + M_ZERO.
Uneeded includes and casts... ok krw@
Diffstat (limited to 'sys/nfs/nfs_vfsops.c')
-rw-r--r--sys/nfs/nfs_vfsops.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c
index 3f1d9670b33..cbf9d8cb902 100644
--- a/sys/nfs/nfs_vfsops.c
+++ b/sys/nfs/nfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_vfsops.c,v 1.67 2007/09/11 13:41:52 blambert Exp $ */
+/* $OpenBSD: nfs_vfsops.c,v 1.68 2007/09/20 12:54:31 thib Exp $ */
/* $NetBSD: nfs_vfsops.c,v 1.46.4.1 1996/05/25 22:40:35 fvdl Exp $ */
/*
@@ -673,9 +673,8 @@ mountnfs(argp, mp, nam, pth, hst)
m_freem(nam);
return (0);
} else {
- MALLOC(nmp, struct nfsmount *, sizeof (struct nfsmount),
- M_NFSMNT, M_WAITOK);
- bzero((caddr_t)nmp, sizeof (struct nfsmount));
+ nmp = malloc(sizeof(struct nfsmount), M_NFSMNT,
+ M_WAITOK|M_ZERO);
mp->mnt_data = (qaddr_t)nmp;
TAILQ_INIT(&nmp->nm_uidlruhead);
}