diff options
author | arr <arr@FreeBSD.org> | 2002-04-30 07:41:59 +0000 |
---|---|---|
committer | arr <arr@FreeBSD.org> | 2002-04-30 07:41:59 +0000 |
commit | 009ce05bfe3bd6bf626b80c1af34ea9d38fb180a (patch) | |
tree | 6e7f828a645561d0d508ec079f22a4ec4110db98 /sys/netatm/atm_cm.c | |
parent | 984aaf7fe593089d24767a1a307107934367e04f (diff) | |
download | FreeBSD-src-009ce05bfe3bd6bf626b80c1af34ea9d38fb180a.zip FreeBSD-src-009ce05bfe3bd6bf626b80c1af34ea9d38fb180a.tar.gz |
- 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.
Diffstat (limited to 'sys/netatm/atm_cm.c')
-rw-r--r-- | sys/netatm/atm_cm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |