if (!pstrWFIDrv->p2p_connect)
                        wlan_channel = INVALID_CHANNEL;
-               if ((pstrWFIDrv->IFC_UP) && (dev == wl->vif[1]->ndev)) {
+               if ((pstrWFIDrv->IFC_UP) && (dev == wl->vif[1]->ndev))
                        pstrDisconnectNotifInfo->reason = 3;
-               } else if ((!pstrWFIDrv->IFC_UP) && (dev == wl->vif[1]->ndev)) {
+               else if ((!pstrWFIDrv->IFC_UP) && (dev == wl->vif[1]->ndev))
                        pstrDisconnectNotifInfo->reason = 1;
-               }
+
                cfg80211_disconnected(dev, pstrDisconnectNotifInfo->reason, pstrDisconnectNotifInfo->ie,
                                      pstrDisconnectNotifInfo->ie_len, false,
                                      GFP_KERNEL);
                        wilc_add_wep_key_bss_sta(vif, sme->key, sme->key_len,
                                                 sme->key_idx);
                } else if (sme->crypto.wpa_versions & NL80211_WPA_VERSION_2)   {
-                       if (sme->crypto.cipher_group == WLAN_CIPHER_SUITE_TKIP) {
+                       if (sme->crypto.cipher_group == WLAN_CIPHER_SUITE_TKIP)
                                u8security = ENCRYPT_ENABLED | WPA2 | TKIP;
-                       } else {
+                       else
                                u8security = ENCRYPT_ENABLED | WPA2 | AES;
-                       }
                } else if (sme->crypto.wpa_versions & NL80211_WPA_VERSION_1)   {
-                       if (sme->crypto.cipher_group == WLAN_CIPHER_SUITE_TKIP) {
+                       if (sme->crypto.cipher_group == WLAN_CIPHER_SUITE_TKIP)
                                u8security = ENCRYPT_ENABLED | WPA | TKIP;
-                       } else {
+                       else
                                u8security = ENCRYPT_ENABLED | WPA | AES;
-                       }
-
                } else {
                        s32Error = -ENOTSUPP;
                        netdev_err(dev, "Not supported cipher\n");
        if ((sme->crypto.wpa_versions & NL80211_WPA_VERSION_1)
            || (sme->crypto.wpa_versions & NL80211_WPA_VERSION_2)) {
                for (i = 0; i < sme->crypto.n_ciphers_pairwise; i++) {
-                       if (sme->crypto.ciphers_pairwise[i] == WLAN_CIPHER_SUITE_TKIP) {
+                       if (sme->crypto.ciphers_pairwise[i] == WLAN_CIPHER_SUITE_TKIP)
                                u8security = u8security | TKIP;
-                       } else {
+                       else
                                u8security = u8security | AES;
-                       }
                }
        }
 
        u8 channel_list_attr_index = 0;
 
        while (index < len) {
-               if (buf[index] == GO_INTENT_ATTR_ID) {
+               if (buf[index] == GO_INTENT_ATTR_ID)
                        buf[index + 3] = (buf[index + 3]  & 0x01) | (0x00 << 1);
-               }
 
                if (buf[index] ==  CHANLIST_ATTR_ID)
                        channel_list_attr_index = index;
                if (channel_list_attr_index) {
                        for (i = channel_list_attr_index + 3; i < ((channel_list_attr_index + 3) + buf[channel_list_attr_index + 1]); i++) {
                                if (buf[i] == 0x51) {
-                                       for (j = i + 2; j < ((i + 2) + buf[i + 1]); j++) {
+                                       for (j = i + 2; j < ((i + 2) + buf[i + 1]); j++)
                                                buf[j] = wlan_channel;
-                                       }
                                        break;
                                }
                        }
                if (channel_list_attr_index) {
                        for (i = channel_list_attr_index + 3; i < ((channel_list_attr_index + 3) + buf[channel_list_attr_index + 1]); i++) {
                                if (buf[i] == 0x51) {
-                                       for (j = i + 2; j < ((i + 2) + buf[i + 1]); j++) {
+                                       for (j = i + 2; j < ((i + 2) + buf[i + 1]); j++)
                                                buf[j] = wlan_channel;
-                                       }
                                        break;
                                }
                        }