Commit 9f7229d9 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] Remove naked GFP_DMA from drivers_net_macmace.c

From:  Matthew Wilcox <willy@debian.org>


  Can use GFP_KERNEL since this is a netdevice ->open routine.
parent 7203a5d4
......@@ -319,8 +319,8 @@ static int mace_open(struct net_device *dev)
/* Allocate the DMA ring buffers */
mp->rx_ring = (void *) __get_free_pages(GFP_DMA, N_RX_PAGES);
mp->tx_ring = (void *) __get_free_pages(GFP_DMA, 0);
mp->rx_ring = (void *) __get_free_pages(GFP_KERNEL | GFP_DMA, N_RX_PAGES);
mp->tx_ring = (void *) __get_free_pages(GFP_KERNEL | GFP_DMA, 0);
if (mp->tx_ring==NULL || mp->rx_ring==NULL) {
if (mp->rx_ring) free_pages((u32) mp->rx_ring, N_RX_PAGES);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment