brcmfmac: remove unnecessary macro usage in brcmf_cfg80211_resume()
authorArend van Spriel <arend@broadcom.com>
Mon, 22 Oct 2012 20:55:40 +0000 (13:55 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 29 Oct 2012 19:28:57 +0000 (15:28 -0400)
The macro wiphy_to_cfg() is a bit redundant as the function already
has a pointer variable to brcmf_cfg80211_info structure.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Franky Lin <frankyl@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c

index 82c7c771c0c94cde662236af1520bafa09f44c8d..62b155e1e018a79974a1c1e7090c511b1a169f23 100644 (file)
@@ -2997,7 +2997,7 @@ static s32 brcmf_cfg80211_resume(struct wiphy *wiphy)
        WL_TRACE("Enter\n");
 
        if (check_vif_up(ifp->vif))
-               brcmf_invoke_iscan(wiphy_to_cfg(wiphy));
+               brcmf_invoke_iscan(cfg);
 
        WL_TRACE("Exit\n");
        return 0;