mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
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: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
48f5a90c83
commit
7524c63f1f
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user