* [PATCH] staging: rtl8192e: remove redundant braces from single line if-else blocks
@ 2024-02-06 20:53 Ahmet Sezgin Duran
2024-02-07 10:13 ` Greg KH
0 siblings, 1 reply; 5+ messages in thread
From: Ahmet Sezgin Duran @ 2024-02-06 20:53 UTC (permalink / raw)
To: gregkh; +Cc: linux-staging, linux-kernel
From de5c5bb23c77fe62987b446c740b971e85105526 Mon Sep 17 00:00:00 2001
From: Ahmet Sezgin Duran <sezgin.duran@linux.org.tr>
Date: Tue, 6 Feb 2024 22:28:55 +0300
Subject: [PATCH] staging: rtl8192e: remove redundant braces from single line
if-else blocks
This commit cleans up redundant braces from single line if-else blocks
for improved readability.
Signed-off-by: Ahmet Sezgin Duran <sezgin.duran@linux.org.tr>
---
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 5 ++---
drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++--
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
index 9b9d95ba06df..080fe9c4585e 100644
--- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
+++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
@@ -693,11 +693,10 @@ void rtl92e_link_change(struct net_device *dev)
u32 reg;
reg = rtl92e_readl(dev, RCR);
- if (priv->rtllib->link_state == MAC80211_LINKED) {
+ if (priv->rtllib->link_state == MAC80211_LINKED)
priv->receive_config = reg |= RCR_CBSSID;
- } else {
+ else
priv->receive_config = reg &= ~RCR_CBSSID;
- }
rtl92e_writel(dev, RCR, reg);
}
diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rtl8192e/rtl819x_HTProc.c
index 6d0912f90198..49b882c363bf 100644
--- a/drivers/staging/rtl8192e/rtl819x_HTProc.c
+++ b/drivers/staging/rtl8192e/rtl819x_HTProc.c
@@ -480,9 +480,9 @@ void ht_on_assoc_rsp(struct rtllib_device *ieee)
}
ht_info->current_mpdu_density = pPeerHTCap->MPDUDensity;
- if (ht_info->iot_action & HT_IOT_ACT_TX_USE_AMSDU_8K) {
+ if (ht_info->iot_action & HT_IOT_ACT_TX_USE_AMSDU_8K)
ht_info->current_ampdu_enable = false;
- }
+
ht_info->cur_rx_reorder_enable = 1;
if (pPeerHTCap->MCS[0] == 0)
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] staging: rtl8192e: remove redundant braces from single line if-else blocks
2024-02-06 20:53 [PATCH] staging: rtl8192e: remove redundant braces from single line if-else blocks Ahmet Sezgin Duran
@ 2024-02-07 10:13 ` Greg KH
2024-02-07 10:55 ` Michael Straube
2024-02-07 11:13 ` Ahmet Sezgin Duran
0 siblings, 2 replies; 5+ messages in thread
From: Greg KH @ 2024-02-07 10:13 UTC (permalink / raw)
To: Ahmet Sezgin Duran; +Cc: linux-staging, linux-kernel
On Tue, Feb 06, 2024 at 11:53:38PM +0300, Ahmet Sezgin Duran wrote:
> >From de5c5bb23c77fe62987b446c740b971e85105526 Mon Sep 17 00:00:00 2001
> From: Ahmet Sezgin Duran <sezgin.duran@linux.org.tr>
> Date: Tue, 6 Feb 2024 22:28:55 +0300
> Subject: [PATCH] staging: rtl8192e: remove redundant braces from single line
> if-else blocks
Why is all of this here in the changelog body?
Please fix up and send a v2.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] staging: rtl8192e: remove redundant braces from single line if-else blocks
2024-02-07 10:13 ` Greg KH
@ 2024-02-07 10:55 ` Michael Straube
2024-02-07 11:13 ` Ahmet Sezgin Duran
1 sibling, 0 replies; 5+ messages in thread
From: Michael Straube @ 2024-02-07 10:55 UTC (permalink / raw)
To: Greg KH, Ahmet Sezgin Duran; +Cc: linux-staging, linux-kernel, Michael Straube
On 2/7/24 11:13, Greg KH wrote:
> On Tue, Feb 06, 2024 at 11:53:38PM +0300, Ahmet Sezgin Duran wrote:
>> >From de5c5bb23c77fe62987b446c740b971e85105526 Mon Sep 17 00:00:00 2001
>> From: Ahmet Sezgin Duran <sezgin.duran@linux.org.tr>
>> Date: Tue, 6 Feb 2024 22:28:55 +0300
>> Subject: [PATCH] staging: rtl8192e: remove redundant braces from single line
>> if-else blocks
>
> Why is all of this here in the changelog body?
>
> Please fix up and send a v2.
>
There is already a pending patch with these changes.
https://lore.kernel.org/lkml/20240201081824.6998-2-straube.linux@gmail.com/
regards,
Michael
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] staging: rtl8192e: remove redundant braces from single line if-else blocks
2024-02-07 10:13 ` Greg KH
2024-02-07 10:55 ` Michael Straube
@ 2024-02-07 11:13 ` Ahmet Sezgin Duran
2024-02-07 11:41 ` Dan Carpenter
1 sibling, 1 reply; 5+ messages in thread
From: Ahmet Sezgin Duran @ 2024-02-07 11:13 UTC (permalink / raw)
To: Greg KH; +Cc: linux-staging, linux-kernel
> Why is all of this here in the changelog body?
>
> Please fix up and send a v2.
>
> thanks,
>
> greg k-h
Sorry, I forgot to remove those before sending.
Should I send a v2, even though Michael Straube has already sent a patch?
(didn't know)
Regards,
Ahmet
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] staging: rtl8192e: remove redundant braces from single line if-else blocks
2024-02-07 11:13 ` Ahmet Sezgin Duran
@ 2024-02-07 11:41 ` Dan Carpenter
0 siblings, 0 replies; 5+ messages in thread
From: Dan Carpenter @ 2024-02-07 11:41 UTC (permalink / raw)
To: Ahmet Sezgin Duran; +Cc: Greg KH, linux-staging, linux-kernel
On Wed, Feb 07, 2024 at 02:13:14PM +0300, Ahmet Sezgin Duran wrote:
> > Why is all of this here in the changelog body?
> >
> > Please fix up and send a v2.
> >
> > thanks,
> >
> > greg k-h
>
> Sorry, I forgot to remove those before sending.
>
> Should I send a v2, even though Michael Straube has already sent a patch?
> (didn't know)
No, don't bother. Patches are merged first come first serve. Michael's
patch will get merged first.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-02-07 11:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-06 20:53 [PATCH] staging: rtl8192e: remove redundant braces from single line if-else blocks Ahmet Sezgin Duran
2024-02-07 10:13 ` Greg KH
2024-02-07 10:55 ` Michael Straube
2024-02-07 11:13 ` Ahmet Sezgin Duran
2024-02-07 11:41 ` Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox