* [PATCH] staging: rtl8723bs: Remove unnecessary braces
@ 2019-10-06 13:30 Javier F. Arias
0 siblings, 0 replies; 7+ 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] 7+ messages in thread
* [PATCH] staging: rtl8723bs: Remove unnecessary braces
@ 2019-10-06 23:03 Javier F. Arias
0 siblings, 0 replies; 7+ 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] 7+ messages in thread
* [PATCH] staging: rtl8723bs: remove unnecessary braces
@ 2026-01-28 15:44 Louis Lesniak
0 siblings, 0 replies; 7+ 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] 7+ 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; 7+ 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] 7+ messages in thread
* Re: [PATCH] staging: rtl8723bs: remove unnecessary braces
2026-03-04 17:19 [PATCH] staging: rtl8723bs: remove unnecessary braces Zeynep Dicle
@ 2026-03-05 22:33 ` Ethan Tidmore
0 siblings, 0 replies; 7+ 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] 7+ 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; 7+ 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] 7+ messages in thread
* Re: [PATCH] staging: rtl8723bs: remove unnecessary braces
2026-05-07 17:52 Shivam Gupta
@ 2026-05-10 17:31 ` Nikolay Kulikov
0 siblings, 0 replies; 7+ messages in thread
From: Nikolay Kulikov @ 2026-05-10 17:31 UTC (permalink / raw)
To: Shivam Gupta; +Cc: gregkh, linux-staging
On Thu, May 07, 2026 at 11:22:18PM +0530, Shivam Gupta wrote:
> Remove unnecessary braces around a single statement block
> reported by checkpatch.
>
> Signed-off-by: Shivam Gupta <shivgupta751157@gmail.com>
Looks good to me.
Reviewed-by: Nikolay Kulikov <nikolayof23@gmail.com>
Thanks,
Nikolay
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2026-05-10 17:31 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-04 17:19 [PATCH] staging: rtl8723bs: remove unnecessary braces Zeynep Dicle
2026-03-05 22:33 ` Ethan Tidmore
-- strict thread matches above, loose matches on Subject: below --
2026-05-07 17:52 Shivam Gupta
2026-05-10 17:31 ` Nikolay Kulikov
2026-01-28 15:44 Louis Lesniak
2019-10-06 23:03 [PATCH] staging: rtl8723bs: Remove " Javier F. Arias
2019-10-06 13:30 Javier F. Arias
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.