Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bceac167 authored by Ryder Lee's avatar Ryder Lee Committed by Felix Fietkau
Browse files

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: default avatarRyder Lee <ryder.lee@mediatek.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent ecd25b54
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);

+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ enum mt76_mcu_evt_type {
	EVT_EVENT_DFS_DETECT_RSP,
};

int mt76_dma_attach(struct mt76_dev *dev);
void mt76_dma_attach(struct mt76_dev *dev);
void mt76_dma_cleanup(struct mt76_dev *dev);

#endif