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
This commit is contained in:
parent
58d3da23e2
commit
3e61cae63a
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user