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>
This commit is contained in:
Lorenzo Bianconi
2023-11-17 17:39:22 +01:00
committed by David S. Miller
parent 69d5ee8c12
commit 94c81c6266
+1 -1
View File
@@ -670,7 +670,7 @@ mtk_wed_tx_buffer_alloc(struct mtk_wed_device *dev)
void *buf;
int s;
page = __dev_alloc_pages(GFP_KERNEL, 0);
page = __dev_alloc_page(GFP_KERNEL);
if (!page)
return -ENOMEM;