mt76: usb: simplify mt76u_tx_build_sg routine
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 20 Feb 2019 22:35:18 +0000 (23:35 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 26 Feb 2019 11:25:18 +0000 (12:25 +0100)
commit04eb16fc70164c03ad84b7eb287c55dfbfc5e4e6
tree59e17290fab2081e719e67c4fd601e6f6ac63813
parent888199b89291a495507bc044352cb6b60ffafee0
mt76: usb: simplify mt76u_tx_build_sg routine

Use skb_to_sgvec instad of skb_to_sgvec_nomark in mt76u_tx_build_sg.
Remove nsgs check in mt76u_tx_build_sg since it is already performed
by skb_to_sgvec

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