From 4d4d73a796ff336623bdcedc7db6c39c8cdae94c Mon Sep 17 00:00:00 2001 From: Stanislaw Gruszka Date: Thu, 21 Mar 2019 16:25:35 +0100 Subject: [PATCH] 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 --- usb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/usb.c b/usb.c index 1f547427..967fe046 100644 --- a/usb.c +++ b/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;