Skip to content

Commit

Permalink
b43: remove extraneous code in free_ringmemory
Browse files Browse the repository at this point in the history
This code seems to have been cut-n-pasted from alloc_ringmemory?
Anyway, it is useless.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
John W. Linville committed Nov 15, 2010
1 parent 8e7ce89 commit 26f94dc
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/net/wireless/b43/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,11 +415,6 @@ static int alloc_ringmemory(struct b43_dmaring *ring)

static void free_ringmemory(struct b43_dmaring *ring)
{
gfp_t flags = GFP_KERNEL;

if (ring->type == B43_DMA_64BIT)
flags |= GFP_DMA;

dma_free_coherent(ring->dev->dev->dma_dev, B43_DMA_RINGMEMSIZE,
ring->descbase, ring->dmabase);
}
Expand Down

0 comments on commit 26f94dc

Please sign in to comment.