projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48f5a90
)
mt76usb: remove unneded sg_init_table
author
Stanislaw Gruszka
<sgruszka@redhat.com>
Thu, 21 Mar 2019 15:25:35 +0000
(16:25 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Wed, 1 May 2019 11:03:57 +0000
(13:03 +0200)
We already allocate with GFP_ZERO and sg marker is set later for
both RX and TX.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mediatek/mt76/usb.c
b/drivers/net/wireless/mediatek/mt76/usb.c
index
7cefa4f
..
0ae69c2
100644
(file)
--- a/
drivers/net/wireless/mediatek/mt76/usb.c
+++ b/
drivers/net/wireless/mediatek/mt76/usb.c
@@
-348,8
+348,6
@@
mt76u_urb_alloc(struct mt76_dev *dev, struct mt76_queue_entry *e)
sizeof(*urb->sg), GFP_KERNEL);
if (!urb->sg)
return -ENOMEM;
-
- sg_init_table(urb->sg, MT_SG_MAX_SIZE);
}
return 0;