Skip to content
Snippets Groups Projects
Commit 7524c63f authored by Stanislaw Gruszka's avatar Stanislaw Gruszka Committed by Felix Fietkau
Browse files

mt76usb: remove unneded sg_init_table


We already allocate with GFP_ZERO and sg marker is set later for
both RX and TX.

Signed-off-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 48f5a90c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment