aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/bnx2x_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
index bdc2e71f491c..039fdd4becff 100644
--- a/drivers/net/bnx2x_main.c
+++ b/drivers/net/bnx2x_main.c
@@ -1613,7 +1613,8 @@ static int bnx2x_rx_int(struct bnx2x_fastpath *fp, int budget)
1613 1613
1614 skb = new_skb; 1614 skb = new_skb;
1615 1615
1616 } else if (bnx2x_alloc_rx_skb(bp, fp, bd_prod) == 0) { 1616 } else
1617 if (likely(bnx2x_alloc_rx_skb(bp, fp, bd_prod) == 0)) {
1617 pci_unmap_single(bp->pdev, 1618 pci_unmap_single(bp->pdev,
1618 pci_unmap_addr(rx_buf, mapping), 1619 pci_unmap_addr(rx_buf, mapping),
1619 bp->rx_buf_size, 1620 bp->rx_buf_size,