Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26f94dc2 authored by John W. Linville's avatar John W. Linville
Browse files

b43: remove extraneous code in free_ringmemory



This code seems to have been cut-n-pasted from alloc_ringmemory?
Anyway, it is useless.

Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 8e7ce893
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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);
}