* [PATCH] staging: rtl8723bs: fix logical continuation style
@ 2026-10-07 10:22 Feiyu Wang
0 siblings, 0 replies; 3+ messages in thread
From: Feiyu Wang @ 2026-10-07 10:22 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-staging, linux-kernel, Feiyu Wang
Move logical operators to the end of the previous line to follow
the kernel coding style, as reported by checkpatch.pl.
Signed-off-by: Feiyu Wang <wangfeiyu_mc_code@163.com>
---
.../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
index a715ac6aa6b9..5dfbb8d9f6ed 100644
--- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
+++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
@@ -393,8 +393,8 @@ void rtw_cfg80211_indicate_connect(struct adapter *padapter)
struct wlan_network *cur_network = &pmlmepriv->cur_network;
struct wireless_dev *pwdev = padapter->rtw_wdev;
- if (pwdev->iftype != NL80211_IFTYPE_STATION
- && pwdev->iftype != NL80211_IFTYPE_P2P_CLIENT
+ if (pwdev->iftype != NL80211_IFTYPE_STATION &&
+ pwdev->iftype != NL80211_IFTYPE_P2P_CLIENT
) {
return;
}
@@ -462,8 +462,8 @@ void rtw_cfg80211_indicate_disconnect(struct adapter *padapter)
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
struct wireless_dev *pwdev = padapter->rtw_wdev;
- if (pwdev->iftype != NL80211_IFTYPE_STATION
- && pwdev->iftype != NL80211_IFTYPE_P2P_CLIENT
+ if (pwdev->iftype != NL80211_IFTYPE_STATION &&
+ pwdev->iftype != NL80211_IFTYPE_P2P_CLIENT
) {
return;
}
@@ -971,8 +971,8 @@ static int cfg80211_rtw_get_station(struct wiphy *wiphy,
}
/* for infra./P2PClient mode */
- if (check_fwstate(pmlmepriv, WIFI_STATION_STATE)
- && check_fwstate(pmlmepriv, _FW_LINKED)) {
+ if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) &&
+ check_fwstate(pmlmepriv, _FW_LINKED)) {
struct wlan_network *cur_network = &pmlmepriv->cur_network;
if (memcmp((u8 *)mac, cur_network->network.mac_address, ETH_ALEN)) {
@@ -1507,9 +1507,9 @@ static int rtw_cfg80211_set_wpa_ie(struct adapter *padapter, u8 *pie, size_t iel
}
/* TKIP and AES disallow multicast packets until installing group key */
- if (padapter->securitypriv.dot11_privacy_algrthm == _TKIP_
- || padapter->securitypriv.dot11_privacy_algrthm == _TKIP_WTMIC_
- || padapter->securitypriv.dot11_privacy_algrthm == _AES_)
+ if (padapter->securitypriv.dot11_privacy_algrthm == _TKIP_ ||
+ padapter->securitypriv.dot11_privacy_algrthm == _TKIP_WTMIC_ ||
+ padapter->securitypriv.dot11_privacy_algrthm == _AES_)
/* WPS open need to enable multicast */
/* check_fwstate(&padapter->mlmepriv, WIFI_UNDER_WPS) == true) */
rtw_hal_set_hwreg(padapter, HW_VAR_OFF_RCR_AM, null_addr);
--
2.55.0
^ permalink raw reply [flat|nested] 3+ messages in thread* [PATCH] staging: rtl8723bs: fix logical continuation style
@ 2026-04-04 7:26 Paarth Mahadik
2026-04-04 22:26 ` Ethan Tidmore
0 siblings, 1 reply; 3+ messages in thread
From: Paarth Mahadik @ 2026-04-04 7:26 UTC (permalink / raw)
To: marvin24
Cc: gregkh, ac100, linux-tegra, linux-staging, linux-kernel, Paarth Mahadik
Logical continuation should be on the previous line,
move && to the end of the preceding line and align
the continuation with the opening parenthesis.
Signed-off-by: Paarth Mahadik <paarth.mahadik@gmail.com>
---
drivers/staging/rtl8723bs/core/rtw_btcoex.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_btcoex.c b/drivers/staging/rtl8723bs/core/rtw_btcoex.c
index 0191a943f0a4..f47c9d079e70 100644
--- a/drivers/staging/rtl8723bs/core/rtw_btcoex.c
+++ b/drivers/staging/rtl8723bs/core/rtw_btcoex.c
@@ -10,8 +10,8 @@
void rtw_btcoex_MediaStatusNotify(struct adapter *padapter, u8 media_status)
{
- if ((media_status == RT_MEDIA_CONNECT)
- && (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == true)) {
+ if ((media_status == RT_MEDIA_CONNECT) &&
+ (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == true)) {
rtw_hal_set_hwreg(padapter, HW_VAR_DL_RSVD_PAGE, NULL);
}
--
2.53.0
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] staging: rtl8723bs: fix logical continuation style
2026-04-04 7:26 Paarth Mahadik
@ 2026-04-04 22:26 ` Ethan Tidmore
0 siblings, 0 replies; 3+ messages in thread
From: Ethan Tidmore @ 2026-04-04 22:26 UTC (permalink / raw)
To: Paarth Mahadik, marvin24
Cc: gregkh, ac100, linux-tegra, linux-staging, linux-kernel
On Sat Apr 4, 2026 at 2:26 AM CDT, Paarth Mahadik wrote:
> Logical continuation should be on the previous line,
> move && to the end of the preceding line and align
> the continuation with the opening parenthesis.
>
> Signed-off-by: Paarth Mahadik <paarth.mahadik@gmail.com>
> ---
LGTM.
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Thanks,
ET
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-10-07 10:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-07 10:22 [PATCH] staging: rtl8723bs: fix logical continuation style Feiyu Wang
-- strict thread matches above, loose matches on Subject: below --
2026-04-04 7:26 Paarth Mahadik
2026-04-04 22:26 ` Ethan Tidmore
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®