* [PATCH] staging: rtl8723bs: Remove unnecessary braces
@ 2019-10-06 13:30 Javier F. Arias
2019-10-06 13:58 ` [Outreachy kernel] " Julia Lawall
0 siblings, 1 reply; 10+ messages in thread
From: Javier F. Arias @ 2019-10-06 13:30 UTC (permalink / raw)
To: gregkh; +Cc: outreachy-kernel
Remove unnecessary braces for single statement block.
Issue found by checkpatch.
Signed-off-by: Javier F. Arias <jarias.linux@gmail.com>
---
drivers/staging/rtl8723bs/core/rtw_xmit.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_xmit.c b/drivers/staging/rtl8723bs/core/rtw_xmit.c
index b5dcb78fb4f4..29acbb1ee869 100644
--- a/drivers/staging/rtl8723bs/core/rtw_xmit.c
+++ b/drivers/staging/rtl8723bs/core/rtw_xmit.c
@@ -3022,9 +3022,8 @@ int rtw_sctx_wait(struct submit_ctx *sctx, const char *msg)
status = sctx->status;
}
- if (status == RTW_SCTX_DONE_SUCCESS) {
+ if (status == RTW_SCTX_DONE_SUCCESS)
ret = _SUCCESS;
- }
return ret;
}
--
2.20.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [Outreachy kernel] [PATCH] staging: rtl8723bs: Remove unnecessary braces
2019-10-06 13:30 [PATCH] staging: rtl8723bs: Remove unnecessary braces Javier F. Arias
@ 2019-10-06 13:58 ` Julia Lawall
2019-10-06 21:15 ` Javier Arias
0 siblings, 1 reply; 10+ messages in thread
From: Julia Lawall @ 2019-10-06 13:58 UTC (permalink / raw)
To: Javier F. Arias; +Cc: gregkh, outreachy-kernel
On Sun, 6 Oct 2019, Javier F. Arias wrote:
> Remove unnecessary braces for single statement block.
> Issue found by checkpatch.
>
> Signed-off-by: Javier F. Arias <jarias.linux@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
The patch looks fine. To go further with this code, you could see whether
the function can return more standdard kernel return values: typically 0
for succes and -ENOMEM etc for various kinds of failure.
julia
> ---
> drivers/staging/rtl8723bs/core/rtw_xmit.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/staging/rtl8723bs/core/rtw_xmit.c b/drivers/staging/rtl8723bs/core/rtw_xmit.c
> index b5dcb78fb4f4..29acbb1ee869 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_xmit.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_xmit.c
> @@ -3022,9 +3022,8 @@ int rtw_sctx_wait(struct submit_ctx *sctx, const char *msg)
> status = sctx->status;
> }
>
> - if (status == RTW_SCTX_DONE_SUCCESS) {
> + if (status == RTW_SCTX_DONE_SUCCESS)
> ret = _SUCCESS;
> - }
>
> return ret;
> }
> --
> 2.20.1
>
> --
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20191006133016.GA22297%40gmail.com.
>
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [Outreachy kernel] [PATCH] staging: rtl8723bs: Remove unnecessary braces
2019-10-06 13:58 ` [Outreachy kernel] " Julia Lawall
@ 2019-10-06 21:15 ` Javier Arias
2019-10-07 5:30 ` Julia Lawall
0 siblings, 1 reply; 10+ messages in thread
From: Javier Arias @ 2019-10-06 21:15 UTC (permalink / raw)
To: outreachy-kernel
[-- Attachment #1.1: Type: text/plain, Size: 2257 bytes --]
Sorry seems like I answered with a direct email instead of the mail list,
so here it goes again:
Hello Julia,
Thanks for your feedback. I'm checking the return values and it seems like
the Realtek driver files would use them internally throughout the code, and
not returned to the system. They are defined in the following header file:
drivers/staging/rtl8723bs/include/osdep_service.h
>
> 11 #define _FAIL 0
> 12 #define _SUCCESS 1
> 13 #define RTW_RX_HANDLED 2
>
Should I do something with them?
On Sunday, 6 October 2019 08:58:26 UTC-5, Julia Lawall wrote:
>
>
>
> On Sun, 6 Oct 2019, Javier F. Arias wrote:
>
> > Remove unnecessary braces for single statement block.
> > Issue found by checkpatch.
> >
> > Signed-off-by: Javier F. Arias <jaria...@gmail.com <javascript:>>
>
> Acked-by: Julia Lawall <julia...@lip6.fr <javascript:>>
>
> The patch looks fine. To go further with this code, you could see whether
> the function can return more standdard kernel return values: typically 0
> for succes and -ENOMEM etc for various kinds of failure.
>
> julia
>
> > ---
> > drivers/staging/rtl8723bs/core/rtw_xmit.c | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/drivers/staging/rtl8723bs/core/rtw_xmit.c
> b/drivers/staging/rtl8723bs/core/rtw_xmit.c
> > index b5dcb78fb4f4..29acbb1ee869 100644
> > --- a/drivers/staging/rtl8723bs/core/rtw_xmit.c
> > +++ b/drivers/staging/rtl8723bs/core/rtw_xmit.c
> > @@ -3022,9 +3022,8 @@ int rtw_sctx_wait(struct submit_ctx *sctx, const
> char *msg)
> > status = sctx->status;
> > }
> >
> > - if (status == RTW_SCTX_DONE_SUCCESS) {
> > + if (status == RTW_SCTX_DONE_SUCCESS)
> > ret = _SUCCESS;
> > - }
> >
> > return ret;
> > }
> > --
> > 2.20.1
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "outreachy-kernel" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to outreach...@googlegroups.com <javascript:>.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/outreachy-kernel/20191006133016.GA22297%40gmail.com.
>
> >
>
[-- Attachment #1.2: Type: text/html, Size: 4082 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [Outreachy kernel] [PATCH] staging: rtl8723bs: Remove unnecessary braces
2019-10-06 21:15 ` Javier Arias
@ 2019-10-07 5:30 ` Julia Lawall
0 siblings, 0 replies; 10+ messages in thread
From: Julia Lawall @ 2019-10-07 5:30 UTC (permalink / raw)
To: Javier Arias; +Cc: outreachy-kernel
[-- Attachment #1: Type: text/plain, Size: 3150 bytes --]
On Sun, 6 Oct 2019, Javier Arias wrote:
> Sorry seems like I answered with a direct email instead of the mail list, so
> here it goes again:
>
> Hello Julia,
>
> Thanks for your feedback. I'm checking the return values and it seems like
> the Realtek driver files would use them internally throughout the code, and
> not returned to the system. They are defined in the following header file:
>
> drivers/staging/rtl8723bs/include/osdep_service.h
>
>
> 11 #define _FAIL 0
> 12 #define _SUCCESS 1
> 13 #define RTW_RX_HANDLED 2
>
>
> Should I do something with them?
I think it would be a good improvement. But it should be done slowly and
carefully. Don't try to do everything at once.
julia
>
> On Sunday, 6 October 2019 08:58:26 UTC-5, Julia Lawall wrote:
>
>
> On Sun, 6 Oct 2019, Javier F. Arias wrote:
>
> > Remove unnecessary braces for single statement block.
> > Issue found by checkpatch.
> >
> > Signed-off-by: Javier F. Arias <jaria...@gmail.com>
>
> Acked-by: Julia Lawall <julia...@lip6.fr>
>
> The patch looks fine. To go further with this code, you could
> see whether
> the function can return more standdard kernel return values:
> typically 0
> for succes and -ENOMEM etc for various kinds of failure.
>
> julia
>
> > ---
> > drivers/staging/rtl8723bs/core/rtw_xmit.c | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/drivers/staging/rtl8723bs/core/rtw_xmit.c
> b/drivers/staging/rtl8723bs/core/rtw_xmit.c
> > index b5dcb78fb4f4..29acbb1ee869 100644
> > --- a/drivers/staging/rtl8723bs/core/rtw_xmit.c
> > +++ b/drivers/staging/rtl8723bs/core/rtw_xmit.c
> > @@ -3022,9 +3022,8 @@ int rtw_sctx_wait(struct submit_ctx
> *sctx, const char *msg)
> > status = sctx->status;
> > }
> >
> > - if (status == RTW_SCTX_DONE_SUCCESS) {
> > + if (status == RTW_SCTX_DONE_SUCCESS)
> > ret = _SUCCESS;
> > - }
> >
> > return ret;
> > }
> > --
> > 2.20.1
> >
> > --
> > You received this message because you are subscribed to the
> Google Groups "outreachy-kernel" group.
> > To unsubscribe from this group and stop receiving emails from
> it, send an email to outreach...@googlegroups.com.
> > To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/20191006133016.GA22297%4
> 0gmail.com.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to outreachy-kernel+unsubscribe@googlegroups.com.
> To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/42d53c83-8aea-43c3-8095-
> e46577a1fcb4%40googlegroups.com.
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH] staging: rtl8723bs: Remove unnecessary braces
@ 2019-10-06 23:03 Javier F. Arias
0 siblings, 0 replies; 10+ messages in thread
From: Javier F. Arias @ 2019-10-06 23:03 UTC (permalink / raw)
To: gregkh; +Cc: outreachy-kernel
Remove braces that are not necessary for any arm of this statement.
Issue found by checkpatch.
Signed-off-by: Javier F. Arias <jarias.linux@gmail.com>
---
drivers/staging/rtl8723bs/core/rtw_xmit.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_xmit.c b/drivers/staging/rtl8723bs/core/rtw_xmit.c
index 3956c43a6468..bda25e13e935 100644
--- a/drivers/staging/rtl8723bs/core/rtw_xmit.c
+++ b/drivers/staging/rtl8723bs/core/rtw_xmit.c
@@ -3063,9 +3063,8 @@ void rtw_ack_tx_done(struct xmit_priv *pxmitpriv, int status)
{
struct submit_ctx *pack_tx_ops = &pxmitpriv->ack_tx_ops;
- if (pxmitpriv->ack_tx) {
+ if (pxmitpriv->ack_tx)
rtw_sctx_done_err(&pack_tx_ops, status);
- } else {
+ else
DBG_871X("%s ack_tx not set\n", __func__);
- }
}
--
2.20.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH] staging: rtl8723bs: remove unnecessary braces
@ 2026-01-28 15:44 Louis Lesniak
0 siblings, 0 replies; 10+ messages in thread
From: Louis Lesniak @ 2026-01-28 15:44 UTC (permalink / raw)
To: gregkh; +Cc: linux-staging, linux-kernel, louis.lesniak2
Remove braces from single statement if blocks to adhere to the
Linux kernel coding style.
Signed-off-by: Louis Lesniak <louis.lesniak2@gmail.com>
---
drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
index 5ffefa506..33734d20d 100644
--- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
+++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c
@@ -63,11 +63,10 @@ u8 networktype_to_raid_ex(struct adapter *adapter, struct sta_info *psta)
break;
case WIRELESS_11B_24N:
case WIRELESS_11BG_24N:
- if (psta->bw_mode == CHANNEL_WIDTH_20) {
+ if (psta->bw_mode == CHANNEL_WIDTH_20)
raid = RATEID_IDX_BGN_20M_1SS_BN;
- } else {
+ else
raid = RATEID_IDX_BGN_40M_1SS;
- }
break;
default:
raid = RATEID_IDX_BGN_40M_2SS;
--
2.50.1 (Apple Git-155)
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH] staging: rtl8723bs: remove unnecessary braces
@ 2026-03-04 17:19 Zeynep Dicle
2026-03-05 22:33 ` Ethan Tidmore
0 siblings, 1 reply; 10+ messages in thread
From: Zeynep Dicle @ 2026-03-04 17:19 UTC (permalink / raw)
To: gregkh
Cc: broonie, linux-staging, linux-kernel, daniel.baluta, simona.toaca,
Zeynep Dicle
Remove unnecessary braces to obey Linux coding style and also fix
the following checkpatch issue:
WARNING: braces {} are not necessary for any arm of this statement
Signed-off-by: Zeynep Dicle <zeynep.dicle.dev@gmail.com>
---
drivers/staging/rtl8723bs/hal/odm_RegConfig8723B.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/odm_RegConfig8723B.c b/drivers/staging/rtl8723bs/hal/odm_RegConfig8723B.c
index 1df42069b..b0ca46aec 100644
--- a/drivers/staging/rtl8723bs/hal/odm_RegConfig8723B.c
+++ b/drivers/staging/rtl8723bs/hal/odm_RegConfig8723B.c
@@ -125,9 +125,8 @@ void odm_ConfigBB_PHY_REG_PG_8723B(
{
if (Addr == 0xfe || Addr == 0xffe)
msleep(50);
- else {
+ else
PHY_StoreTxPowerByRate(pDM_Odm->Adapter, RfPath, Addr, Bitmask, Data);
- }
}
void odm_ConfigBB_PHY_8723B(
@@ -149,9 +148,8 @@ void odm_ConfigBB_PHY_8723B(
udelay(5);
else if (Addr == 0xf9)
udelay(1);
- else {
+ else
PHY_SetBBReg(pDM_Odm->Adapter, Addr, Bitmask, Data);
- }
/* Add 1us delay between BB/RF register setting. */
udelay(1);
--
2.43.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [PATCH] staging: rtl8723bs: remove unnecessary braces
2026-03-04 17:19 Zeynep Dicle
@ 2026-03-05 22:33 ` Ethan Tidmore
0 siblings, 0 replies; 10+ messages in thread
From: Ethan Tidmore @ 2026-03-05 22:33 UTC (permalink / raw)
To: Zeynep Dicle, gregkh
Cc: broonie, linux-staging, linux-kernel, daniel.baluta, simona.toaca
On Wed Mar 4, 2026 at 11:19 AM CST, Zeynep Dicle wrote:
> Remove unnecessary braces to obey Linux coding style and also fix
> the following checkpatch issue:
>
> WARNING: braces {} are not necessary for any arm of this statement
>
> Signed-off-by: Zeynep Dicle <zeynep.dicle.dev@gmail.com>
> ---
LGTM.
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Thanks,
ET
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH] staging: rtl8723bs: remove unnecessary braces
@ 2026-05-07 17:52 Shivam Gupta
2026-05-10 17:31 ` Nikolay Kulikov
0 siblings, 1 reply; 10+ messages in thread
From: Shivam Gupta @ 2026-05-07 17:52 UTC (permalink / raw)
To: gregkh; +Cc: linux-staging, Shivam Gupta
Remove unnecessary braces around a single statement block
reported by checkpatch.
Signed-off-by: Shivam Gupta <shivgupta751157@gmail.com>
---
drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c b/drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c
index 58f6cf063498..f3195f6f7e57 100644
--- a/drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c
+++ b/drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c
@@ -294,9 +294,8 @@ static u8 halbtc8723b2ant_ActionAlgorithm(struct btc_coexist *pBtCoexist)
pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_HS_OPERATION, &bBtHsOn);
- if (!pBtLinkInfo->bBtLinkExist) {
+ if (!pBtLinkInfo->bBtLinkExist)
return algorithm;
- }
if (pBtLinkInfo->bScoExist)
numOfDiffProfile++;
--
2.34.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
end of thread, other threads:[~2026-05-10 17:31 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-06 13:30 [PATCH] staging: rtl8723bs: Remove unnecessary braces Javier F. Arias
2019-10-06 13:58 ` [Outreachy kernel] " Julia Lawall
2019-10-06 21:15 ` Javier Arias
2019-10-07 5:30 ` Julia Lawall
-- strict thread matches above, loose matches on Subject: below --
2019-10-06 23:03 Javier F. Arias
2026-01-28 15:44 [PATCH] staging: rtl8723bs: remove " Louis Lesniak
2026-03-04 17:19 Zeynep Dicle
2026-03-05 22:33 ` Ethan Tidmore
2026-05-07 17:52 Shivam Gupta
2026-05-10 17:31 ` Nikolay Kulikov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.