[7872][7885][9610] wlbt : Checkpatch Error
authorHimani Gupta <himani.g2@samsung.com>
Tue, 21 Aug 2018 08:54:07 +0000 (14:24 +0530)
committerhskang <hs1218.kang@samsung.com>
Fri, 31 Aug 2018 08:01:30 +0000 (17:01 +0900)
Fixed checkpatch error

Change-Id: Ica365a2297d164f45555dda9f7ebb4c47b61d7cb
SCSC-Bug-Id: SSB-43002
Signed-off-by: Himani Gupta <himani.g2@samsung.com>
Signed-off-by: Pragya Gupta <pragya.gupta@samsung.com>
drivers/net/wireless/scsc/mlme.c

index 0c2f9c7c0170cd6dbaab17b97040e6019bb02656..0ef241a0423a923791dbe3d22b25a943a8f66b7b 100755 (executable)
@@ -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) {