]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
mt76: mt7915: simplify mt7915_lmac_mapping
authorFelix Fietkau <nbd@nbd.name>
Tue, 1 Sep 2020 19:26:33 +0000 (21:26 +0200)
committerFelix Fietkau <nbd@nbd.name>
Thu, 24 Sep 2020 16:10:18 +0000 (18:10 +0200)
commitbd397a0bf82838d4e28b6f296cc68034f7eb49ae
treeb343889ae3e7add8c3cab0b8e8b8d6275026938a
parent75d4bf1f5590183a60557dac4daa4749f4dac6ef
mt76: mt7915: simplify mt7915_lmac_mapping

Compared to mac80211 ACs, MT7915 queue numbers are in reverse order
There is no need for the defensive WARN_ON_ONCE, so we can simplify
the function to avoid the array lookup

Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h