mt76: add unlikely() for dma_mapping_error() check
authorRyder Lee <ryder.lee@mediatek.com>
Mon, 1 Apr 2019 07:16:42 +0000 (15:16 +0800)
committerFelix Fietkau <nbd@nbd.name>
Wed, 1 May 2019 11:03:59 +0000 (13:03 +0200)
commit6edf07478da50ffbe64110391dada12bc1711f29
tree1b6c8dbb5556fb931bb1b6759231c73a2f5713e7
parent04b8e65922f631e297bde9536306f879e6fd952b
mt76: add unlikely() for dma_mapping_error() check

In the tx/rx fastpath, the funciton dma_map_single() rarely fails.
This adds unlikely() optimization to this error check conditional.

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/dma.c