Skip to content

Commit c960e2b

Browse files
tititiou36Kalle Valo
authored andcommitted
qtnfmac: Simplify code in _attach functions
There is no need to re-implement 'netdev_alloc_skb_ip_align()' here. Keep the code simple. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Reviewed-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20200407193233.9439-1-christophe.jaillet@wanadoo.fr
1 parent ec4d3e3 commit c960e2b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ static int pearl_skb2rbd_attach(struct qtnf_pcie_pearl_state *ps, u16 index)
286286
struct sk_buff *skb;
287287
dma_addr_t paddr;
288288

289-
skb = __netdev_alloc_skb_ip_align(NULL, SKB_BUF_SIZE, GFP_ATOMIC);
289+
skb = netdev_alloc_skb_ip_align(NULL, SKB_BUF_SIZE);
290290
if (!skb) {
291291
priv->rx_skb[index] = NULL;
292292
return -ENOMEM;

‎drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ topaz_skb2rbd_attach(struct qtnf_pcie_topaz_state *ts, u16 index, u32 wrap)
247247
struct sk_buff *skb;
248248
dma_addr_t paddr;
249249

250-
skb = __netdev_alloc_skb_ip_align(NULL, SKB_BUF_SIZE, GFP_ATOMIC);
250+
skb = netdev_alloc_skb_ip_align(NULL, SKB_BUF_SIZE);
251251
if (!skb) {
252252
ts->base.rx_skb[index] = NULL;
253253
return -ENOMEM;

0 commit comments

Comments
 (0)