diff options
Diffstat (limited to 'drivers/net/b44.c')
| -rw-r--r-- | drivers/net/b44.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/net/b44.c b/drivers/net/b44.c index ab845076ff9f..5485e3b1cd35 100644 --- a/drivers/net/b44.c +++ b/drivers/net/b44.c | |||
| @@ -1131,14 +1131,10 @@ static void b44_init_rings(struct b44 *bp) | |||
| 1131 | */ | 1131 | */ |
| 1132 | static void b44_free_consistent(struct b44 *bp) | 1132 | static void b44_free_consistent(struct b44 *bp) |
| 1133 | { | 1133 | { |
| 1134 | if (bp->rx_buffers) { | 1134 | kfree(bp->rx_buffers); |
| 1135 | kfree(bp->rx_buffers); | 1135 | bp->rx_buffers = NULL; |
| 1136 | bp->rx_buffers = NULL; | 1136 | kfree(bp->tx_buffers); |
| 1137 | } | 1137 | bp->tx_buffers = NULL; |
| 1138 | if (bp->tx_buffers) { | ||
| 1139 | kfree(bp->tx_buffers); | ||
| 1140 | bp->tx_buffers = NULL; | ||
| 1141 | } | ||
| 1142 | if (bp->rx_ring) { | 1138 | if (bp->rx_ring) { |
| 1143 | if (bp->flags & B44_FLAG_RX_RING_HACK) { | 1139 | if (bp->flags & B44_FLAG_RX_RING_HACK) { |
| 1144 | dma_unmap_single(&bp->pdev->dev, bp->rx_ring_dma, | 1140 | dma_unmap_single(&bp->pdev->dev, bp->rx_ring_dma, |
