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 <[email protected]>
This commit is contained in:
Stanislaw Gruszka
2019-03-24 08:24:42 +01:00
committed by Felix Fietkau
parent 42f2899d4d
commit 4d4d73a796
-2
View File
@@ -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;