summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2011-07-07 19:09:10 +0000
committerhenning <henning@openbsd.org>2011-07-07 19:09:10 +0000
commit94ef266d524bed0072b3dca993bbb5f9a6d0524e (patch)
treee896c594d846f38ad992278c1108101db1e41637 /sys
parentRaise the cache aliasing boundary to 4MB like we did on hppa a couple of years (diff)
downloadwireguard-openbsd-94ef266d524bed0072b3dca993bbb5f9a6d0524e.tar.xz
wireguard-openbsd-94ef266d524bed0072b3dca993bbb5f9a6d0524e.zip
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
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_san_xilinx.c4
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);