diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2009-04-22 01:17:27 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2009-04-22 01:17:27 +0000 |
commit | 352e95d4916d43f64bfe2d7a040460657fcd5a09 (patch) | |
tree | 7cb10b63f38370dac881627a9cb55252f154c60c /sys/dev/pci/if_bnx.c | |
parent | 83c58e3ed9556507b455f313f544ee7954c2343a (diff) |
dont need to zero the tx pkt pool structure before initting it now that
pool_init does its job properly.
Diffstat (limited to 'sys/dev/pci/if_bnx.c')
-rw-r--r-- | sys/dev/pci/if_bnx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_bnx.c b/sys/dev/pci/if_bnx.c index cf7b235ea93..ee38a65867f 100644 --- a/sys/dev/pci/if_bnx.c +++ b/sys/dev/pci/if_bnx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bnx.c,v 1.77 2009/04/22 00:38:04 dlg Exp $ */ +/* $OpenBSD: if_bnx.c,v 1.78 2009/04/22 01:17:26 dlg Exp $ */ /*- * Copyright (c) 2006 Broadcom Corporation @@ -4258,8 +4258,7 @@ bnx_init(void *xsc) if (rw_enter(&bnx_tx_pool_lk, RW_WRITE | RW_INTR) != 0) return; if (bnx_tx_pool == NULL) { - bnx_tx_pool = malloc(sizeof(*bnx_tx_pool), M_DEVBUF, - M_WAITOK | M_ZERO); + bnx_tx_pool = malloc(sizeof(*bnx_tx_pool), M_DEVBUF, M_WAITOK); if (bnx_tx_pool != NULL) { pool_init(bnx_tx_pool, sizeof(struct bnx_pkt), 0, 0, 0, "bnxpkts", &pool_allocator_nointr); |