Skip to content
Commit 6edf0747 authored by Ryder Lee's avatar Ryder Lee Committed by Felix Fietkau
Browse files

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: default avatarRyder Lee <ryder.lee@mediatek.com>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent 04b8e659
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment