From: Arend van Spriel Date: Mon, 22 Oct 2012 20:55:40 +0000 (-0700) Subject: brcmfmac: remove unnecessary macro usage in brcmf_cfg80211_resume() X-Git-Tag: MMI-PSA29.97-13-9~15401^2~17^2~261 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=823e1c813f9b414fb62d5fd2f326c95425cdd585;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git brcmfmac: remove unnecessary macro usage in brcmf_cfg80211_resume() 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 Reviewed-by: Hante Meuleman Signed-off-by: Arend van Spriel Signed-off-by: Franky Lin Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c index 82c7c771c0c9..62b155e1e018 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c @@ -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;