aboutsummaryrefslogtreecommitdiff
path: root/sys/rpc
diff options
context:
space:
mode:
authorEnji Cooper <ngie@FreeBSD.org>2016-05-24 20:06:41 +0000
committerEnji Cooper <ngie@FreeBSD.org>2016-05-24 20:06:41 +0000
commitcb05064e7099cc87afd96e1f78bc70cc2ad5ccf6 (patch)
treea8f68efe6c8a7f6fc84c078ba79060505cfe410d /sys/rpc
parent8f5cc6902759f2a167d78ee59e167386ec28534f (diff)
downloadsrc-cb05064e7099cc87afd96e1f78bc70cc2ad5ccf6.tar.gz
src-cb05064e7099cc87afd96e1f78bc70cc2ad5ccf6.zip
Remove unnecessary memset(.., 0, ..)'s
The mem_alloc macro calls calloc (userspace) / malloc(.., M_WAITOK|M_ZERO) under the covers, so zeroing out memory is already handled by the underlying calls MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
Notes
Notes: svn path=/head/; revision=300625
Diffstat (limited to 'sys/rpc')
-rw-r--r--sys/rpc/svc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/rpc/svc.c b/sys/rpc/svc.c
index 50ab93a0a017..3e682b96ac1e 100644
--- a/sys/rpc/svc.c
+++ b/sys/rpc/svc.c
@@ -847,9 +847,7 @@ svc_xprt_alloc()
SVCXPRT_EXT *ext;
xprt = mem_alloc(sizeof(SVCXPRT));
- memset(xprt, 0, sizeof(SVCXPRT));
ext = mem_alloc(sizeof(SVCXPRT_EXT));
- memset(ext, 0, sizeof(SVCXPRT_EXT));
xprt->xp_p3 = ext;
refcount_init(&xprt->xp_refs, 1);