Skip to content

Commit 94c81c6

Browse files
LorenzoBianconidavem330
authored andcommitted
net: ethernet: mtk_wed: rely on __dev_alloc_page in mtk_wed_tx_buffer_alloc
Simplify the code and use __dev_alloc_page() instead of __dev_alloc_pages() with order 0 in mtk_wed_tx_buffer_alloc routine Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 69d5ee8 commit 94c81c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mediatek/mtk_wed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ mtk_wed_tx_buffer_alloc(struct mtk_wed_device *dev)
670670
void *buf;
671671
int s;
672672

673-
page = __dev_alloc_pages(GFP_KERNEL, 0);
673+
page = __dev_alloc_page(GFP_KERNEL);
674674
if (!page)
675675
return -ENOMEM;
676676

0 commit comments

Comments
 (0)