]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mt76: mt7921: fix endianness warning in mt7921_update_txs
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 21 Jun 2021 09:18:58 +0000 (11:18 +0200)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 4 Jan 2022 08:48:23 +0000 (09:48 +0100)
commite2173524fd01adc2cee7bc5c4103cb030a463f6b
treef8594234148715b73d2e19c238c889b0e77e370c
parent97797bb105519929ebdbf60bf80464fbef396803
mt76: mt7921: fix endianness warning in mt7921_update_txs

BugLink: https://bugs.launchpad.net/bugs/1951822
[ Upstream commit 7fc167bbc9296e6aeaaa4063db3639e8a3db75f6 ]

Fix the following sparse warning in mt7921_update_txs routine:
drivers/net/wireless/mediatek/mt76/mt7921/mac.c:752:31:
warning: cast to restricted __le32
drivers/net/wireless/mediatek/mt76/mt7921/mac.c:752:31:
warning: restricted __le32 degrades to integer

Fixes: e5bca8c5d2cd3 ("mt76: mt7921: improve code readability for mt7921_update_txs")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/net/wireless/mediatek/mt76/mt7921/mac.c