summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mediatek/mt76/dma.c
diff options
context:
space:
mode:
authorRyder Lee <ryder.lee@mediatek.com>2019-02-11 05:13:41 +0300
committerFelix Fietkau <nbd@nbd.name>2019-02-18 21:54:34 +0300
commitbceac167b00fbc2f5e93eecd578179a467863d85 (patch)
treecd9b08d2e5609924e749fde310a1c62abb28c1df /drivers/net/wireless/mediatek/mt76/dma.c
parentecd25b547d96fe64b8bf67623e773cec29b690c1 (diff)
downloadlinux-bceac167b00fbc2f5e93eecd578179a467863d85.tar.xz
mt76: change the return type of mt76_dma_attach()
There is no need to retun 0 in mt76_dma_attach(), so switch it to void. Signed-off-by: Ryder Lee <ryder.lee@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/dma.c')
-rw-r--r--drivers/net/wireless/mediatek/mt76/dma.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/dma.c b/drivers/net/wireless/mediatek/mt76/dma.c
index bfbfc0c2ec29..6eedc0ec7661 100644
--- a/drivers/net/wireless/mediatek/mt76/dma.c
+++ b/drivers/net/wireless/mediatek/mt76/dma.c
@@ -553,10 +553,9 @@ static const struct mt76_queue_ops mt76_dma_ops = {
.kick = mt76_dma_kick_queue,
};
-int mt76_dma_attach(struct mt76_dev *dev)
+void mt76_dma_attach(struct mt76_dev *dev)
{
dev->queue_ops = &mt76_dma_ops;
- return 0;
}
EXPORT_SYMBOL_GPL(mt76_dma_attach);