OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32fb47f
)
mt76: dma: avoid indirect call in mt76_dma_tx_queue_skb
author
Lorenzo Bianconi
<lorenzo.bianconi@redhat.com>
Mon, 31 Dec 2018 14:42:54 +0000
(15:42 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Fri, 11 Jan 2019 14:10:19 +0000
(15:10 +0100)
Call mt76_dma_add_buf routine directly in mt76_dma_tx_queue_skb
and avoid indirect call if not necessary
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/dma.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/dma.c
b/drivers/net/wireless/mediatek/mt76/dma.c
index
1db163c
..
e769c8a
100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/dma.c
+++ b/
drivers/net/wireless/mediatek/mt76/dma.c
@@
-300,7
+300,7
@@
int mt76_dma_tx_queue_skb(struct mt76_dev *dev, struct mt76_queue *q,
if (q->queued + (n + 1) / 2 >= q->ndesc - 1)
goto unmap;
- return
dev->queue_ops->
add_buf(dev, q, buf, n, tx_info, skb, t);
+ return
mt76_dma_
add_buf(dev, q, buf, n, tx_info, skb, t);
unmap:
ret = -ENOMEM;