brcmsmac: remove a useless test
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 15 Sep 2019 19:32:10 +0000 (21:32 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 1 Oct 2019 09:13:29 +0000 (12:13 +0300)
'pih' is known to be non-NULL at this point, so the test can be removed.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c

index 080e829da9b30da835901534ee1b2bd5a4691b2e..6bb34a12a94bf360fb8cfdb3277b983a025ee809 100644 (file)
@@ -1816,8 +1816,7 @@ void brcms_b_phy_reset(struct brcms_hardware *wlc_hw)
        udelay(2);
        brcms_b_core_phy_clk(wlc_hw, ON);
 
-       if (pih)
-               wlc_phy_anacore(pih, ON);
+       wlc_phy_anacore(pih, ON);
 }
 
 /* switch to and initialize new band */