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)
commitbcadaaa097c7ec103fe75f9da41f8fe52693b644
treed1a4484d50f2f08364da28293cb4250b16f91a38
parent99d7b6fdfc8c24052c92c720330d31ca1332f996
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