mt76: usb: simplify rx buffer allocation
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 20 Feb 2019 22:35:17 +0000 (23:35 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 26 Feb 2019 11:25:18 +0000 (12:25 +0100)
commit888199b89291a495507bc044352cb6b60ffafee0
tree46be56eaef0601aa5db36ae8ed013f2bd66e9a60
parent4de92bf10c6df694732d46be19f1d6350f7dba2e
mt76: usb: simplify rx buffer allocation

Squash mt76u_buf_alloc_sg and mt76u_buf_alloc and remove duplicated
code. Reuse mt76u_refill_rx in mt76u_buf_alloc

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76.h
drivers/net/wireless/mediatek/mt76/usb.c