* [PATCH] staging: rtl8723bs: Remove unnecessary bracks
@ 2023-10-13 0:29 Edson Juliano Drosdeck
2023-10-15 16:19 ` Greg KH
0 siblings, 1 reply; 3+ messages in thread
From: Edson Juliano Drosdeck @ 2023-10-13 0:29 UTC (permalink / raw)
To: gregkh
Cc: hdegoede, Larry.Finger, ruanjinjie, linux-staging, linux-kernel,
edson.drosdeck
Warning found by checkpatch.pl script.Remove bracks than are not necessary for
a single statement blocks in hal/odm.c
Signed-off-by: Edson Juliano Drosdeck <edson.drosdeck@gmail.com>
---
drivers/staging/rtl8723bs/hal/odm.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/rtl8723bs/hal/odm.c b/drivers/staging/rtl8723bs/hal/odm.c
index ea3b4cd32360..b1397990680f 100644
--- a/drivers/staging/rtl8723bs/hal/odm.c
+++ b/drivers/staging/rtl8723bs/hal/odm.c
@@ -417,13 +417,11 @@ static void odm_RefreshRateAdaptiveMaskCE(struct dm_odm_t *pDM_Odm)
u8 i;
struct adapter *padapter = pDM_Odm->Adapter;
- if (padapter->bDriverStopped) {
+ if (padapter->bDriverStopped)
return;
- }
- if (!pDM_Odm->bUseRAMask) {
+ if (!pDM_Odm->bUseRAMask)
return;
- }
for (i = 0; i < ODM_ASSOCIATE_ENTRY_NUM; i++) {
PSTA_INFO_T pstat = pDM_Odm->pODM_StaInfo[i];
@@ -461,9 +459,8 @@ static void odm_RefreshRateAdaptiveMaskCE(struct dm_odm_t *pDM_Odm)
static void odm_RefreshRateAdaptiveMask(struct dm_odm_t *pDM_Odm)
{
- if (!(pDM_Odm->SupportAbility & ODM_BB_RA_MASK)) {
+ if (!(pDM_Odm->SupportAbility & ODM_BB_RA_MASK))
return;
- }
odm_RefreshRateAdaptiveMaskCE(pDM_Odm);
}
--
2.39.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: rtl8723bs: Remove unnecessary bracks
2023-10-13 0:29 [PATCH] staging: rtl8723bs: Remove unnecessary bracks Edson Juliano Drosdeck
@ 2023-10-15 16:19 ` Greg KH
2023-10-15 16:35 ` edson drosdeck
0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2023-10-15 16:19 UTC (permalink / raw)
To: Edson Juliano Drosdeck
Cc: hdegoede, Larry.Finger, ruanjinjie, linux-staging, linux-kernel
On Thu, Oct 12, 2023 at 09:29:44PM -0300, Edson Juliano Drosdeck wrote:
> Warning found by checkpatch.pl script.Remove bracks than are not necessary for
> a single statement blocks in hal/odm.c
"bracks"? I think it is called "brackets", right?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] staging: rtl8723bs: Remove unnecessary bracks
2023-10-15 16:19 ` Greg KH
@ 2023-10-15 16:35 ` edson drosdeck
0 siblings, 0 replies; 3+ messages in thread
From: edson drosdeck @ 2023-10-15 16:35 UTC (permalink / raw)
To: Greg KH; +Cc: hdegoede, Larry.Finger, ruanjinjie, linux-staging, linux-kernel
Thanks for the feedback.
Em dom., 15 de out. de 2023 às 13:19, Greg KH
<gregkh@linuxfoundation.org> escreveu:
>
> On Thu, Oct 12, 2023 at 09:29:44PM -0300, Edson Juliano Drosdeck wrote:
> > Warning found by checkpatch.pl script.Remove bracks than are not necessary for
> > a single statement blocks in hal/odm.c
>
> "bracks"? I think it is called "brackets", right?
>
> thanks,
>
> greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-10-15 16:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-13 0:29 [PATCH] staging: rtl8723bs: Remove unnecessary bracks Edson Juliano Drosdeck
2023-10-15 16:19 ` Greg KH
2023-10-15 16:35 ` edson drosdeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).