diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2012-08-13 13:14:51 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2012-08-13 13:14:51 +0000 |
commit | f07824ad0c33b57c69058394a38f38ea9ca5f385 (patch) | |
tree | f0d447fc51f7ab248ca636722c43e125008be94d /sys/dev/pci/if_ix.c | |
parent | 55281b83393154d1cc36681beaf3264a139ef21f (diff) |
sync a comment with reality and remove an error path duplicate; from brad
Diffstat (limited to 'sys/dev/pci/if_ix.c')
-rw-r--r-- | sys/dev/pci/if_ix.c | 11 |
1 files changed, 2 insertions, 9 deletions
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) |