tg3: Cleanup transmit error path
authorMatt Carlson <mcarlson@broadcom.com>
Thu, 19 May 2011 12:12:45 +0000 (12:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 May 2011 21:59:59 +0000 (17:59 -0400)
commit432aa7ed75b3adaef6040d2cbe745fdd1c899415
treee2f9d271bdbfbd3b4b9e35cb00e8a72cd366dc38
parent2ffcc981d823a0518c627ca22d51ef72d0b7ca9a
tg3: Cleanup transmit error path

This patch consolidates the skb cleanup code into a function named
tg3_skb_error_unmap().  The modification addresses a long-standing bug
where pci_unmap_single() was incorrectly being called instead of
pci_unmap_page() in tigon3_dma_hwbug_workaround().

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c