From f07824ad0c33b57c69058394a38f38ea9ca5f385 Mon Sep 17 00:00:00 2001 From: Mike Belopuhov Date: Mon, 13 Aug 2012 13:14:51 +0000 Subject: sync a comment with reality and remove an error path duplicate; from brad --- sys/dev/pci/if_ix.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'sys/dev/pci/if_ix.c') diff --git a/sys/dev/pci/if_ix.c b/sys/dev/pci/if_ix.c index 9592781b206..7e146b41519 100644 --- a/sys/dev/pci/if_ix.c +++ b/sys/dev/pci/if_ix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ix.c,v 1.70 2012/08/11 06:53:31 mikeb Exp $ */ +/* $OpenBSD: if_ix.c,v 1.71 2012/08/13 13:14:50 mikeb Exp $ */ /****************************************************************************** @@ -1093,11 +1093,7 @@ ixgbe_encap(struct tx_ring *txr, struct mbuf *m_head) */ error = bus_dmamap_load_mbuf(txr->txdma.dma_tag, map, m_head, BUS_DMA_NOWAIT); - /* XXX EFBIG */ - if (error == ENOMEM) { - sc->no_tx_dma_setup++; - return (error); - } else if (error != 0) { + if (error != 0) { sc->no_tx_dma_setup++; return (error); } @@ -2954,9 +2950,6 @@ ixgbe_free_receive_buffers(struct rx_ring *rxr) * the mbufs in the descriptor and sends data which has been * dma'ed into host memory to upper layer. * - * We loop at most count times if count is > 0, or until done if - * count < 0. - * *********************************************************************/ int ixgbe_rxeof(struct ix_queue *que) -- cgit v1.2.3