diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2011-07-07 19:09:11 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2011-07-07 19:09:11 +0000 |
commit | a54a0720c9372af794b078ed23c9f83df4e239ba (patch) | |
tree | 3f6a537baec7f9abf981d3668ecaf6cfe4d20814 | |
parent | c3cd94eb41186f79a24cec1145efddf158a564e6 (diff) |
i NEVER NEVER NEVER want to see ifqueue->ifq_len = anything. sorry, that is
horrid and must be wrong. now in this case it is actually harmless - but
setting them to 0 just after having malloc'd it with M_ZERO is pointless
to begin with. ok claudio
-rw-r--r-- | sys/dev/pci/if_san_xilinx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/pci/if_san_xilinx.c b/sys/dev/pci/if_san_xilinx.c index 83c3d6fe68b..dd90a0598b3 100644 --- a/sys/dev/pci/if_san_xilinx.c +++ b/sys/dev/pci/if_san_xilinx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_san_xilinx.c,v 1.24 2008/11/26 18:01:43 dlg Exp $ */ +/* $OpenBSD: if_san_xilinx.c,v 1.25 2011/07/07 19:09:10 henning Exp $ */ /*- * Copyright (c) 2001-2004 Sangoma Technologies (SAN) @@ -363,9 +363,7 @@ wan_xilinx_init(sdla_t *card) sdla_getcfg(card->hw, SDLA_DMATAG, &sc->dmatag); IFQ_SET_MAXLEN(&sc->wp_tx_pending_list, MAX_TX_BUF); - sc->wp_tx_pending_list.ifq_len = 0; IFQ_SET_MAXLEN(&sc->wp_tx_complete_list, MAX_TX_BUF); - sc->wp_tx_complete_list.ifq_len = 0; aft_alloc_rx_buffers(sc); |