History

net: ag71xx: Use GFP_KERNEL instead of GFP_ATOMIC in 'ag71xx_rings_init()'

There is no need to use GFP_ATOMIC here, GFP_KERNEL should be enough. The 'kcalloc()' just a few lines above, already uses GFP_KERNEL.

Christophe JAILLET committed 7 years ago

Commit 246902b1 parent 47b69bf1 file · +1 −1Browse files

Unified · Split

drivers/net/ethernet/atheros/ag71xx.c+1−1
@@ -1141,7 +1141,7 @@ static int ag71xx_rings_init(struct ag71xx *ag) · 1140 unmodified lines
11411141
11421142 tx->descs_cpu = dma_alloc_coherent(&ag->pdev->dev,
11431143 ring_size * AG71XX_DESC_SIZE,
1144− &tx->descs_dma, GFP_ATOMIC);
1144+ &tx->descs_dma, GFP_KERNEL);
11451145 if (!tx->descs_cpu) {
11461146 kfree(tx->buf);
11471147 tx->buf = NULL;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t