mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
staging: rtl8723bs: fix spacing around operators
Add missing spaces around mathematical and logical operators (+, -, /, |, ?, :) and remove multiple spaces around operators to comply with the Linux kernel coding style. Issue identified by checkpatch.pl and review feedback. Signed-off-by: Archit Anant <architanant5@gmail.com> Link: https://patch.msgid.link/20260116155750.3173-2-architanant5@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5080a15d75
commit
d847f2e128
|
|
@ -185,7 +185,7 @@ int rtw_init_cmd_priv(struct cmd_priv *pcmdpriv)
|
|||
return -ENOMEM;
|
||||
}
|
||||
|
||||
pcmdpriv->rsp_buf = pcmdpriv->rsp_allocated_buf + 4 - ((SIZE_PTR)(pcmdpriv->rsp_allocated_buf) & 3);
|
||||
pcmdpriv->rsp_buf = pcmdpriv->rsp_allocated_buf + 4 - ((SIZE_PTR)(pcmdpriv->rsp_allocated_buf) & 3);
|
||||
|
||||
pcmdpriv->cmd_issued_cnt = 0;
|
||||
pcmdpriv->cmd_done_cnt = 0;
|
||||
|
|
@ -697,7 +697,7 @@ u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork)
|
|||
t_len = sizeof(struct wlan_bssid_ex);
|
||||
|
||||
/* for hidden ap to set fw_state here */
|
||||
if (check_fwstate(pmlmepriv, WIFI_STATION_STATE|WIFI_ADHOC_STATE) != true) {
|
||||
if (check_fwstate(pmlmepriv, WIFI_STATION_STATE | WIFI_ADHOC_STATE) != true) {
|
||||
switch (ndis_network_mode) {
|
||||
case Ndis802_11IBSS:
|
||||
set_fwstate(pmlmepriv, WIFI_ADHOC_STATE);
|
||||
|
|
@ -722,10 +722,10 @@ u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork)
|
|||
|
||||
psecuritypriv->authenticator_ie[0] = (unsigned char)psecnetwork->ie_length;
|
||||
|
||||
if ((psecnetwork->ie_length-12) < (256-1))
|
||||
memcpy(&psecuritypriv->authenticator_ie[1], &psecnetwork->ies[12], psecnetwork->ie_length-12);
|
||||
if ((psecnetwork->ie_length - 12) < (256 - 1))
|
||||
memcpy(&psecuritypriv->authenticator_ie[1], &psecnetwork->ies[12], psecnetwork->ie_length - 12);
|
||||
else
|
||||
memcpy(&psecuritypriv->authenticator_ie[1], &psecnetwork->ies[12], (256-1));
|
||||
memcpy(&psecuritypriv->authenticator_ie[1], &psecnetwork->ies[12], (256 - 1));
|
||||
|
||||
psecnetwork->ie_length = 0;
|
||||
/* Added by Albert 2009/02/18 */
|
||||
|
|
@ -752,7 +752,7 @@ u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork)
|
|||
}
|
||||
|
||||
phtpriv->ht_option = false;
|
||||
ptmp = rtw_get_ie(&pnetwork->network.ies[12], WLAN_EID_HT_CAPABILITY, &tmp_len, pnetwork->network.ie_length-12);
|
||||
ptmp = rtw_get_ie(&pnetwork->network.ies[12], WLAN_EID_HT_CAPABILITY, &tmp_len, pnetwork->network.ie_length - 12);
|
||||
if (pregistrypriv->ht_enable && ptmp && tmp_len > 0) {
|
||||
/* Added by Albert 2010/06/23 */
|
||||
/* For the WEP mode, we will use the bg mode to do the connection to avoid some IOT issue. */
|
||||
|
|
@ -766,7 +766,7 @@ u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork)
|
|||
|
||||
/* rtw_restructure_ht_ie */
|
||||
rtw_restructure_ht_ie(padapter, &pnetwork->network.ies[12], &psecnetwork->ies[0],
|
||||
pnetwork->network.ie_length-12, &psecnetwork->ie_length,
|
||||
pnetwork->network.ie_length - 12, &psecnetwork->ie_length,
|
||||
pnetwork->network.configuration.ds_config);
|
||||
}
|
||||
}
|
||||
|
|
@ -1124,8 +1124,8 @@ static void collect_traffic_statistics(struct adapter *padapter)
|
|||
pdvobjpriv->traffic_stat.last_tx_bytes = pdvobjpriv->traffic_stat.tx_bytes;
|
||||
pdvobjpriv->traffic_stat.last_rx_bytes = pdvobjpriv->traffic_stat.rx_bytes;
|
||||
|
||||
pdvobjpriv->traffic_stat.cur_tx_tp = (u32)(pdvobjpriv->traffic_stat.cur_tx_bytes * 8/2/1024/1024);
|
||||
pdvobjpriv->traffic_stat.cur_rx_tp = (u32)(pdvobjpriv->traffic_stat.cur_rx_bytes * 8/2/1024/1024);
|
||||
pdvobjpriv->traffic_stat.cur_tx_tp = (u32)(pdvobjpriv->traffic_stat.cur_tx_bytes * 8 / 2 / 1024 / 1024);
|
||||
pdvobjpriv->traffic_stat.cur_rx_tp = (u32)(pdvobjpriv->traffic_stat.cur_rx_bytes * 8 / 2 / 1024 / 1024);
|
||||
}
|
||||
|
||||
u8 traffic_status_watchdog(struct adapter *padapter, u8 from_timer)
|
||||
|
|
@ -1596,9 +1596,9 @@ static void rtw_btinfo_hdl(struct adapter *adapter, u8 *buf, u16 buf_len)
|
|||
|
||||
cmd_idx = info->cid;
|
||||
|
||||
if (info->len > buf_len-2) {
|
||||
if (info->len > buf_len - 2) {
|
||||
rtw_warn_on(1);
|
||||
len = buf_len-2;
|
||||
len = buf_len - 2;
|
||||
} else {
|
||||
len = info->len;
|
||||
}
|
||||
|
|
@ -1608,7 +1608,7 @@ static void rtw_btinfo_hdl(struct adapter *adapter, u8 *buf, u16 buf_len)
|
|||
buf[1] = 0;
|
||||
else if (cmd_idx == BTINFO_BT_AUTO_RPT)
|
||||
buf[1] = 2;
|
||||
hal_btcoex_BtInfoNotify(adapter, len+1, &buf[1]);
|
||||
hal_btcoex_BtInfoNotify(adapter, len + 1, &buf[1]);
|
||||
}
|
||||
|
||||
u8 rtw_c2h_packet_wk_cmd(struct adapter *padapter, u8 *pbuf, u16 length)
|
||||
|
|
@ -1668,7 +1668,7 @@ u8 rtw_c2h_wk_cmd(struct adapter *padapter, u8 *c2h_evt)
|
|||
|
||||
pdrvextra_cmd_parm->ec_id = C2H_WK_CID;
|
||||
pdrvextra_cmd_parm->type = 0;
|
||||
pdrvextra_cmd_parm->size = c2h_evt?16:0;
|
||||
pdrvextra_cmd_parm->size = c2h_evt ? 16 : 0;
|
||||
pdrvextra_cmd_parm->pbuf = c2h_evt;
|
||||
|
||||
init_h2fwcmd_w_parm_no_rsp(ph2c, pdrvextra_cmd_parm, GEN_CMD_CODE(_Set_Drv_Extra));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user