* [PATCH] staging: rtl8723bs: add spaces arround |
[not found] <20260423201212.77701-1-hcazarim.ref@yahoo.com>
@ 2026-04-23 20:12 ` Henrique Cazarim
2026-04-24 13:54 ` Luka Gejak
0 siblings, 1 reply; 2+ messages in thread
From: Henrique Cazarim @ 2026-04-23 20:12 UTC (permalink / raw)
To: linux-staging, linux-kernel, gregkh
Cc: ~lkcamp/patches, koike, Henrique Cazarim
Fix checkpatch error "CHECK: spaces preferred around that '|'"
in rtw_ioctl_set.c:154.
Signed-off-by: Henrique Cazarim <hcazarim@yahoo.com>
---
Hey, this is my first patch, I appreciate any feedback, thanks!
---
drivers/staging/rtl8723bs/core/rtw_ioctl_set.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c
index c70541f95a73..edfb4b5e8db0 100644
--- a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c
+++ b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c
@@ -151,7 +151,7 @@ u8 rtw_set_802_11_ssid(struct adapter *padapter, struct ndis_802_11_ssid *ssid)
else if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING) == true)
goto release_mlme_lock;
- if (check_fwstate(pmlmepriv, _FW_LINKED|WIFI_ADHOC_MASTER_STATE) == true) {
+ if (check_fwstate(pmlmepriv, _FW_LINKED | WIFI_ADHOC_MASTER_STATE) == true) {
if ((pmlmepriv->assoc_ssid.ssid_length == ssid->ssid_length) &&
(!memcmp(&pmlmepriv->assoc_ssid.ssid, ssid->ssid, ssid->ssid_length))) {
if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) == false) {
--
2.30.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: rtl8723bs: add spaces arround |
2026-04-23 20:12 ` [PATCH] staging: rtl8723bs: add spaces arround | Henrique Cazarim
@ 2026-04-24 13:54 ` Luka Gejak
0 siblings, 0 replies; 2+ messages in thread
From: Luka Gejak @ 2026-04-24 13:54 UTC (permalink / raw)
To: Henrique Cazarim, linux-staging, linux-kernel, gregkh
Cc: ~lkcamp/patches, koike, Luka Gejak
On Thu Apr 23, 2026 at 10:12 PM CEST, Henrique Cazarim wrote:
Hi Henrique,
thanks for the patch, few notes below.
> Fix checkpatch error "CHECK: spaces preferred around that '|'"
> in rtw_ioctl_set.c:154.
What is this indentation, it shouldn't be there especially not with
spaces. Also same in subject "[PATCH] staging:" is wrong. There
should be only one space between [PATCH] and staging, so:
"[PATCH] staging:". One more thing regarding the subject, it should be
more descriptive of actual change. "add spaces arround |" doesn't give
any additional information. You should at least say what is change
affecting or where is the change located. Something like: "add spaces
arround | in rtw_set_802_11_ssid".
>
> Signed-off-by: Henrique Cazarim <hcazarim@yahoo.com>
> ---
>
^^^^^
Also you have unnecessary blank line above.
> Hey, this is my first patch, I appreciate any feedback, thanks!
> ---
> drivers/staging/rtl8723bs/core/rtw_ioctl_set.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c
> index c70541f95a73..edfb4b5e8db0 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_ioctl_set.c
> @@ -151,7 +151,7 @@ u8 rtw_set_802_11_ssid(struct adapter *padapter, struct ndis_802_11_ssid *ssid)
> else if (check_fwstate(pmlmepriv, _FW_UNDER_LINKING) == true)
> goto release_mlme_lock;
>
> - if (check_fwstate(pmlmepriv, _FW_LINKED|WIFI_ADHOC_MASTER_STATE) == true) {
> + if (check_fwstate(pmlmepriv, _FW_LINKED | WIFI_ADHOC_MASTER_STATE) == true) {
> if ((pmlmepriv->assoc_ssid.ssid_length == ssid->ssid_length) &&
> (!memcmp(&pmlmepriv->assoc_ssid.ssid, ssid->ssid, ssid->ssid_length))) {
> if (check_fwstate(pmlmepriv, WIFI_STATION_STATE) == false) {
Please send v2 with mentioned changes, code itself it good and should be
left as is.
Best regards,
Luka Gejak
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-24 13:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260423201212.77701-1-hcazarim.ref@yahoo.com>
2026-04-23 20:12 ` [PATCH] staging: rtl8723bs: add spaces arround | Henrique Cazarim
2026-04-24 13:54 ` Luka Gejak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox