From 08bbe9c23ba4a6bf18c8101b1503d127d1242a6f Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Mon, 10 Jul 2017 19:33:46 +0900 Subject: net: bcmdhd: fix misleading-indentation build warning This patch fixes following build warning caused by wrong indent: drivers/net/wireless/bcmdhd/wl_cfg80211.c: In function 'wl_cfg80211_mgmt_tx': drivers/net/wireless/bcmdhd/wl_cfg80211.c:5796:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if ((dev == bcmcfg_to_prmry_ndev(cfg)) && cfg->p2p) ^~ drivers/net/wireless/bcmdhd/wl_cfg80211.c:5798:5: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if' wl_cfgp2p_set_management_ie(cfg, dev, bssidx, ^~~~~~~~~~~~~~~~~~~~~~~~~~~ Change-Id: I6ab0087a11b9a1a2be05211ba0ef751ff8f564b7 Signed-off-by: Seung-Woo Kim --- drivers/net/wireless/bcmdhd/wl_cfg80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/bcmdhd/wl_cfg80211.c b/drivers/net/wireless/bcmdhd/wl_cfg80211.c index 2a13bf9262f..51cf4c91b38 100644 --- a/drivers/net/wireless/bcmdhd/wl_cfg80211.c +++ b/drivers/net/wireless/bcmdhd/wl_cfg80211.c @@ -5795,7 +5795,7 @@ wl_cfg80211_mgmt_tx(struct wiphy *wiphy, bcm_struct_cfgdev *cfgdev, s32 ie_len = len - ie_offset; if ((dev == bcmcfg_to_prmry_ndev(cfg)) && cfg->p2p) bssidx = wl_to_p2p_bss_bssidx(cfg, P2PAPI_BSSCFG_DEVICE); - wl_cfgp2p_set_management_ie(cfg, dev, bssidx, + wl_cfgp2p_set_management_ie(cfg, dev, bssidx, VNDR_IE_PRBRSP_FLAG, (u8 *)(buf + ie_offset), ie_len); cfg80211_mgmt_tx_status(cfgdev, *cookie, buf, len, true, GFP_KERNEL); goto exit; -- cgit v1.2.3