]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: More efficient and slightly easier to read fixup for 4339 chips
authorArend Van Spriel <arend.vanspriel@broadcom.com>
Tue, 19 Dec 2017 12:47:12 +0000 (13:47 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Jan 2018 17:17:57 +0000 (19:17 +0200)
commiteb03b6de03136a28b14db14ea68ca6785605b00a
treed1a4484d50f2f08364da28293cb4250b16f91a38
parent02d8ae081e2ea70568e52e47190c80b999691bda
brcmfmac: More efficient and slightly easier to read fixup for 4339 chips

Its more efficient to test the register we're interested in first,
potentially avoiding two more comparisons, and therefore always avoiding
one comparison per call on all other chips.

Signed-off-by: Ian Molton <ian@mnementh.co.uk>
[arend: fix some checkpatch warnings]
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c