mt76usb: remove usb_mcu.c
Don't need separate file just for kmalloc/kfree. Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:

committed by
Felix Fietkau

parent
a18a494f90
commit
fc994dbbd9
@@ -577,9 +577,14 @@ EXPORT_SYMBOL_GPL(mt76u_submit_rx_buffers);
|
||||
|
||||
static int mt76u_alloc_rx(struct mt76_dev *dev)
|
||||
{
|
||||
struct mt76_usb *usb = &dev->usb;
|
||||
struct mt76_queue *q = &dev->q_rx[MT_RXQ_MAIN];
|
||||
int i, err;
|
||||
|
||||
usb->mcu.data = devm_kmalloc(dev->dev, MCU_RESP_URB_SIZE, GFP_KERNEL);
|
||||
if (!usb->mcu.data)
|
||||
return -ENOMEM;
|
||||
|
||||
spin_lock_init(&q->rx_page_lock);
|
||||
spin_lock_init(&q->lock);
|
||||
q->entry = devm_kcalloc(dev->dev,
|
||||
|
Reference in New Issue
Block a user