Commit 8bfea034 authored by Yamanappagouda Patil's avatar Yamanappagouda Patil Committed by Greg Kroah-Hartman

staging: rtl8188eu: fixed 'braces are not necessary for single statement blocks'.

Fixed checkpatch.pl warnings in rtl8188eu module core folder files.
Signed-off-by: default avatarYamanappagouda Patil <goudapatilk@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1dfcda6f
...@@ -563,9 +563,9 @@ static bool hal_EfusePgPacketWrite2ByteHeader(struct adapter *pAdapter, u8 efuse ...@@ -563,9 +563,9 @@ static bool hal_EfusePgPacketWrite2ByteHeader(struct adapter *pAdapter, u8 efuse
} }
if ((tmp_header & 0x0F) == 0x0F) { /* word_en PG fail */ if ((tmp_header & 0x0F) == 0x0F) { /* word_en PG fail */
if (repeatcnt++ > EFUSE_REPEAT_THRESHOLD_) { if (repeatcnt++ > EFUSE_REPEAT_THRESHOLD_)
return false; return false;
}
efuse_addr++; efuse_addr++;
continue; continue;
} else if (pg_header != tmp_header) { /* offset PG fail */ } else if (pg_header != tmp_header) { /* offset PG fail */
......
...@@ -275,9 +275,8 @@ static s32 dump_mgntframe_and_wait_ack(struct adapter *padapter, ...@@ -275,9 +275,8 @@ static s32 dump_mgntframe_and_wait_ack(struct adapter *padapter,
pxmitpriv->ack_tx = true; pxmitpriv->ack_tx = true;
pmgntframe->ack_report = 1; pmgntframe->ack_report = 1;
if (rtw_hal_mgnt_xmit(padapter, pmgntframe) == _SUCCESS) { if (rtw_hal_mgnt_xmit(padapter, pmgntframe) == _SUCCESS)
ret = rtw_ack_tx_wait(pxmitpriv, timeout_ms); ret = rtw_ack_tx_wait(pxmitpriv, timeout_ms);
}
pxmitpriv->ack_tx = false; pxmitpriv->ack_tx = false;
mutex_unlock(&pxmitpriv->ack_tx_mutex); mutex_unlock(&pxmitpriv->ack_tx_mutex);
...@@ -3460,11 +3459,10 @@ static unsigned int OnAssocRsp(struct adapter *padapter, ...@@ -3460,11 +3459,10 @@ static unsigned int OnAssocRsp(struct adapter *padapter,
UpdateBrateTbl(padapter, pmlmeinfo->network.SupportedRates); UpdateBrateTbl(padapter, pmlmeinfo->network.SupportedRates);
report_assoc_result: report_assoc_result:
if (res > 0) { if (res > 0)
rtw_buf_update(&pmlmepriv->assoc_rsp, &pmlmepriv->assoc_rsp_len, pframe, pkt_len); rtw_buf_update(&pmlmepriv->assoc_rsp, &pmlmepriv->assoc_rsp_len, pframe, pkt_len);
} else { else
rtw_buf_free(&pmlmepriv->assoc_rsp, &pmlmepriv->assoc_rsp_len); rtw_buf_free(&pmlmepriv->assoc_rsp, &pmlmepriv->assoc_rsp_len);
}
report_join_res(padapter, res); report_join_res(padapter, res);
...@@ -4009,9 +4007,8 @@ static void init_channel_list(struct adapter *padapter, struct rt_channel_info * ...@@ -4009,9 +4007,8 @@ static void init_channel_list(struct adapter *padapter, struct rt_channel_info *
struct p2p_reg_class *reg = NULL; struct p2p_reg_class *reg = NULL;
for (ch = o->min_chan; ch <= o->max_chan; ch += o->inc) { for (ch = o->min_chan; ch <= o->max_chan; ch += o->inc) {
if (!has_channel(channel_set, chanset_size, ch)) { if (!has_channel(channel_set, chanset_size, ch))
continue; continue;
}
if ((0 == padapter->registrypriv.ht_enable) && (8 == o->inc)) if ((0 == padapter->registrypriv.ht_enable) && (8 == o->inc))
continue; continue;
...@@ -4754,10 +4751,9 @@ void linked_status_chk(struct adapter *padapter) ...@@ -4754,10 +4751,9 @@ void linked_status_chk(struct adapter *padapter)
} }
} }
if (tx_chk != _SUCCESS && pmlmeinfo->link_count++ == 0xf) { if (tx_chk != _SUCCESS && pmlmeinfo->link_count++ == 0xf)
tx_chk = issue_nulldata(padapter, NULL, 0, 1, 0); tx_chk = issue_nulldata(padapter, NULL, 0, 1, 0);
} }
}
if (rx_chk == _FAIL) { if (rx_chk == _FAIL) {
pmlmeext->retry++; pmlmeext->retry++;
......
...@@ -180,9 +180,9 @@ int ips_leave(struct adapter *padapter) ...@@ -180,9 +180,9 @@ int ips_leave(struct adapter *padapter)
DBG_88E("==>ips_leave cnts:%d\n", pwrpriv->ips_leave_cnts); DBG_88E("==>ips_leave cnts:%d\n", pwrpriv->ips_leave_cnts);
result = rtw_ips_pwr_up(padapter); result = rtw_ips_pwr_up(padapter);
if (result == _SUCCESS) { if (result == _SUCCESS)
pwrpriv->rf_pwrstate = rf_on; pwrpriv->rf_pwrstate = rf_on;
}
DBG_88E_LEVEL(_drv_info_, "nolinked power save leave\n"); DBG_88E_LEVEL(_drv_info_, "nolinked power save leave\n");
if ((_WEP40_ == psecuritypriv->dot11PrivacyAlgrthm) || (_WEP104_ == psecuritypriv->dot11PrivacyAlgrthm)) { if ((_WEP40_ == psecuritypriv->dot11PrivacyAlgrthm) || (_WEP104_ == psecuritypriv->dot11PrivacyAlgrthm)) {
......
...@@ -1093,11 +1093,10 @@ static int validate_recv_data_frame(struct adapter *adapter, ...@@ -1093,11 +1093,10 @@ static int validate_recv_data_frame(struct adapter *adapter,
break; break;
} }
if (ret == _FAIL) { if (ret == _FAIL)
goto exit; goto exit;
} else if (ret == RTW_RX_HANDLED) { else if (ret == RTW_RX_HANDLED)
goto exit; goto exit;
}
if (psta == NULL) { if (psta == NULL) {
RT_TRACE(_module_rtl871x_recv_c_, _drv_err_, (" after to_fr_ds_chk; psta==NULL\n")); RT_TRACE(_module_rtl871x_recv_c_, _drv_err_, (" after to_fr_ds_chk; psta==NULL\n"));
...@@ -1573,9 +1572,9 @@ static int amsdu_to_msdu(struct adapter *padapter, struct recv_frame *prframe) ...@@ -1573,9 +1572,9 @@ static int amsdu_to_msdu(struct adapter *padapter, struct recv_frame *prframe)
if (padding_len == 4) if (padding_len == 4)
padding_len = 0; padding_len = 0;
if (a_len < padding_len) { if (a_len < padding_len)
goto exit; goto exit;
}
pdata += padding_len; pdata += padding_len;
a_len -= padding_len; a_len -= padding_len;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment