From: Yao-Wen Chang <changyaowen19980629@gmail.com>
To: gregkh@linuxfoundation.org
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
Yao-Wen Chang <changyaowen19980629@gmail.com>
Subject: [PATCH 08/11] staging: rtl8723bs: Enforce alignment match open parenthesis
Date: Mon, 11 Aug 2025 14:21:31 +0800 [thread overview]
Message-ID: <20250811062132.102525-8-changyaowen19980629@gmail.com> (raw)
In-Reply-To: <20250811062132.102525-1-changyaowen19980629@gmail.com>
This commit force the alignment to match the open parenthesis
from previous line.
Signed-off-by: Yao-Wen Chang <changyaowen19980629@gmail.com>
---
drivers/staging/rtl8723bs/core/rtw_cmd.c | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c
index a11afebc8b9e..e82f8a07b630 100644
--- a/drivers/staging/rtl8723bs/core/rtw_cmd.c
+++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c
@@ -307,7 +307,7 @@ int rtw_cmd_filter(struct cmd_priv *pcmdpriv, struct cmd_obj *cmd_obj)
bAllow = true;
if ((!pcmdpriv->padapter->hw_init_completed && !bAllow) ||
- !atomic_read(&pcmdpriv->cmdthd_running)) /* com_thread not running */
+ !atomic_read(&pcmdpriv->cmdthd_running)) /* com_thread not running */
return _FAIL;
return _SUCCESS;
@@ -364,9 +364,8 @@ void rtw_free_cmd_obj(struct cmd_obj *pcmd)
void rtw_stop_cmd_thread(struct adapter *adapter)
{
- if (adapter->cmdThread &&
- atomic_read(&adapter->cmdpriv.cmdthd_running) &&
- adapter->cmdpriv.stop_req == 0) {
+ if (adapter->cmdThread && atomic_read(&adapter->cmdpriv.cmdthd_running) &&
+ adapter->cmdpriv.stop_req == 0) {
adapter->cmdpriv.stop_req = 1;
complete(&adapter->cmdpriv.cmd_queue_comp);
wait_for_completion(&adapter->cmdpriv.terminate_cmdthread_comp);
@@ -527,7 +526,7 @@ int rtw_cmd_thread(void *context)
*/
u8 rtw_sitesurvey_cmd(struct adapter *padapter, struct ndis_802_11_ssid *ssid, int ssid_num,
- struct rtw_ieee80211_channel *ch, int ch_num)
+ struct rtw_ieee80211_channel *ch, int ch_num)
{
u8 res = _FAIL;
struct cmd_obj *ph2c;
@@ -777,8 +776,8 @@ u8 rtw_joinbss_cmd(struct adapter *padapter, struct wlan_network *pnetwork)
* Especially for Realtek 8192u SoftAP.
*/
if ((padapter->securitypriv.dot11PrivacyAlgrthm != _WEP40_) &&
- (padapter->securitypriv.dot11PrivacyAlgrthm != _WEP104_) &&
- (padapter->securitypriv.dot11PrivacyAlgrthm != _TKIP_)) {
+ (padapter->securitypriv.dot11PrivacyAlgrthm != _WEP104_) &&
+ (padapter->securitypriv.dot11PrivacyAlgrthm != _TKIP_)) {
rtw_ht_use_default_setting(padapter);
rtw_build_wmm_ie_ht(padapter,
@@ -1184,7 +1183,7 @@ u8 traffic_status_watchdog(struct adapter *padapter, u8 from_timer)
BusyThreshold = BusyThresholdLow;
if (pmlmepriv->LinkDetectInfo.NumRxOkInPeriod > BusyThreshold ||
- pmlmepriv->LinkDetectInfo.NumTxOkInPeriod > BusyThreshold) {
+ pmlmepriv->LinkDetectInfo.NumTxOkInPeriod > BusyThreshold) {
bBusyTraffic = true;
if (pmlmepriv->LinkDetectInfo.NumRxOkInPeriod >
@@ -1196,7 +1195,7 @@ u8 traffic_status_watchdog(struct adapter *padapter, u8 from_timer)
/* Higher Tx/Rx data. */
if (pmlmepriv->LinkDetectInfo.NumRxOkInPeriod > 4000 ||
- pmlmepriv->LinkDetectInfo.NumTxOkInPeriod > 4000) {
+ pmlmepriv->LinkDetectInfo.NumTxOkInPeriod > 4000) {
bHigherBusyTraffic = true;
if (pmlmepriv->LinkDetectInfo.NumRxOkInPeriod >
@@ -1302,7 +1301,7 @@ void lps_ctrl_wk_hdl(struct adapter *padapter, u8 lps_ctrl_type)
u8 mstatus;
if (check_fwstate(pmlmepriv, WIFI_ADHOC_MASTER_STATE) ||
- check_fwstate(pmlmepriv, WIFI_ADHOC_STATE)) {
+ check_fwstate(pmlmepriv, WIFI_ADHOC_STATE)) {
return;
}
--
2.43.0
next prev parent reply other threads:[~2025-08-11 6:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-11 6:21 [PATCH 01/11] staging: rtl8723bs: Rename camelCase variables to snake_case Yao-Wen Chang
2025-08-11 6:21 ` [PATCH 02/11] staging: rtl8723bs: Reformat code to respect 100-column line limit Yao-Wen Chang
2025-08-11 7:30 ` Dan Carpenter
2025-08-11 6:21 ` [PATCH 03/11] staging: rtl8723bs: Remove empty line Yao-Wen Chang
2025-08-11 6:21 ` [PATCH 04/11] staging: rtl8723bs: Fix the line end with ( issue Yao-Wen Chang
2025-08-11 6:21 ` [PATCH 05/11] staging: rtl8723bs: Rmove unnecessary parentheses around the statement Yao-Wen Chang
2025-08-11 6:21 ` [PATCH 06/11] staging: rtl8723bs: Remove redundant comparison to true and false Yao-Wen Chang
2025-08-11 6:21 ` [PATCH 07/11] staging: rtl8723bs: Add spaces around binary operators Yao-Wen Chang
2025-08-11 6:21 ` Yao-Wen Chang [this message]
2025-08-11 6:21 ` [PATCH 09/11] staging: rtl8723bs: Rename camelCaseVar to snake_case_var Yao-Wen Chang
2025-08-11 7:24 ` [PATCH 01/11] staging: rtl8723bs: Rename camelCase variables to snake_case Dan Carpenter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250811062132.102525-8-changyaowen19980629@gmail.com \
--to=changyaowen19980629@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox