summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorCan Erkin Acar <canacar@cvs.openbsd.org>2005-11-08 20:51:01 +0000
committerCan Erkin Acar <canacar@cvs.openbsd.org>2005-11-08 20:51:01 +0000
commit57a5a153f8b055c934e8bce0c13403cd575d202c (patch)
tree71dc0ae38ea24908eacee784d324a7e4aac283a5 /sys/dev
parent4e3d3ef403025a0335a0d712640ead67f4384e5d (diff)
Remove some leftover debugging cruft and an unnecessary check.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_san_xilinx.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/dev/pci/if_san_xilinx.c b/sys/dev/pci/if_san_xilinx.c
index 5bd51d76fbd..34ec14433db 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.15 2005/11/08 20:23:42 canacar Exp $ */
+/* $OpenBSD: if_san_xilinx.c,v 1.16 2005/11/08 20:51:00 canacar Exp $ */
/*-
* Copyright (c) 2001-2004 Sangoma Technologies (SAN)
@@ -2408,11 +2408,8 @@ aft_release_rx_buffers(xilinx_softc_t *sc)
{
struct xilinx_rx_buffer *buf;
- if (sc->wp_rx_buffers == NULL) {
- printf("%s: release_rx_buffers called with no buffers!\n",
- sc->if_name, MAX_RX_BUF, sizeof(*buf), (void *)buf);
+ if (sc->wp_rx_buffers == NULL)
return;
- }
while ((buf = SIMPLEQ_FIRST(&sc->wp_rx_free_list)) != NULL) {
SIMPLEQ_REMOVE_HEAD(&sc->wp_rx_free_list, entry);
@@ -2501,11 +2498,6 @@ aft_reload_rx_dma_buff(xilinx_softc_t *sc, struct xilinx_rx_buffer *buf)
static void
aft_release_rx_dma_buff(xilinx_softc_t *sc, struct xilinx_rx_buffer *buf)
{
- if (buf->mbuf == NULL) {
- printf("%s: Error, buffer already free!\n");
- return;
- }
-
bus_dmamap_destroy(sc->dmatag, buf->dma_map);
m_freem(buf->mbuf);
buf->mbuf = NULL;