From b680fa7f47a96e05bd6f3afa63fcbe007dee0c7e Mon Sep 17 00:00:00 2001 From: Himani Gupta Date: Tue, 21 Aug 2018 14:24:07 +0530 Subject: [PATCH] [7872][7885][9610] wlbt : Checkpatch Error Fixed checkpatch error Change-Id: Ica365a2297d164f45555dda9f7ebb4c47b61d7cb SCSC-Bug-Id: SSB-43002 Signed-off-by: Himani Gupta Signed-off-by: Pragya Gupta --- drivers/net/wireless/scsc/mlme.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/scsc/mlme.c b/drivers/net/wireless/scsc/mlme.c index 0c2f9c7c0170..0ef241a0423a 100755 --- a/drivers/net/wireless/scsc/mlme.c +++ b/drivers/net/wireless/scsc/mlme.c @@ -1854,11 +1854,14 @@ int slsi_mlme_start(struct slsi_dev *sdev, struct net_device *dev, u8 *bssid, st if (append_vht_ies) vht_ies_len = SLSI_VHT_CAPABILITIES_IE_LEN + SLSI_VHT_OPERATION_IE_LEN; - if ((recv_vht_capab_ie = cfg80211_find_ie(WLAN_EID_VHT_CAPABILITY, settings->beacon.tail, - settings->beacon.tail_len)) != NULL) + recv_vht_capab_ie = cfg80211_find_ie(WLAN_EID_VHT_CAPABILITY, settings->beacon.tail, + settings->beacon.tail_len); + if (recv_vht_capab_ie) vht_ies_len -= (recv_vht_capab_ie[1] + 2); - if ((recv_vht_operation_ie = cfg80211_find_ie(WLAN_EID_VHT_OPERATION, settings->beacon.tail, - settings->beacon.tail_len)) != NULL) + + recv_vht_operation_ie = cfg80211_find_ie(WLAN_EID_VHT_OPERATION, settings->beacon.tail, + settings->beacon.tail_len); + if (recv_vht_operation_ie) vht_ies_len -= (recv_vht_operation_ie[1] + 2); if (ndev_vif->chandef->width == NL80211_CHAN_WIDTH_80) { -- 2.20.1