From 009ce05bfe3bd6bf626b80c1af34ea9d38fb180a Mon Sep 17 00:00:00 2001 From: arr Date: Tue, 30 Apr 2002 07:41:59 +0000 Subject: - Take advantage of the M_ZERO flag that can now be passed to uma_zalloc. - Remove atm_uma_ctor() as the M_ZERO will zero out the memory for us. --- sys/netatm/atm_cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netatm/atm_cm.c') diff --git a/sys/netatm/atm_cm.c b/sys/netatm/atm_cm.c index d8dccef..ff6b34b 100644 --- a/sys/netatm/atm_cm.c +++ b/sys/netatm/atm_cm.c @@ -709,7 +709,7 @@ atm_cm_listen(epp, token, ap, copp) /* * Get an attribute block and save listening attributes */ - cop->co_lattr = uma_zalloc(atm_attributes_zone, 0); + cop->co_lattr = uma_zalloc(atm_attributes_zone, M_ZERO); if (cop->co_lattr == NULL) { err = ENOMEM; goto done; -- cgit v1.1