Skip to contentSkip to conversation

staging: rtl8192e: remove redundant braces from single line if-else blocks

PATCH In review Ahmet Sezgin Duran 4 participants 5 messages Feb 6, 2024 – Feb 7, 2024 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8192e: remove redundant braces from single line if-else blocks

From de5c5bb23c77fe62987b446c740b971e85105526 Mon Sep 17 00:00:00 2001
From: Ahmet Sezgin Duran <[email protected]>
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.

---
 drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 5 ++---
 drivers/staging/rtl8192e/rtl819x_HTProc.c      | 4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c +2 -3
index 9b9d95ba06df..080fe9c4585e 100644
@@ -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);
 	}
drivers/staging/rtl8192e/rtl819x_HTProc.c +2 -2
index 6d0912f90198..49b882c363bf 100644
@@ -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)
Signature · 1 line
2.43.0
maintainer
#1 lore raw
Quoted 5 lines · Ahmet Sezgin Duran
Quoted 1 line

From de5c5bb23c77fe62987b446c740b971e85105526 Mon Sep 17 00:00:00 2001

From: Ahmet Sezgin Duran <[email protected]>
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

#2 lore raw
Quoted 11 lines · Greg KH
Quoted 5 lines · Ahmet Sezgin Duran
Quoted 1 line

From de5c5bb23c77fe62987b446c740b971e85105526 Mon Sep 17 00:00:00 2001

From: Ahmet Sezgin Duran <[email protected]>
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/[email protected]/

regards,
Michael

#3 lore raw
In reply to Greg KH
Quoted 7 lines

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

#4 lore raw
Quoted 4 lines · Ahmet Sezgin Duran
Quoted 4 lines

Why is all of this here in the changelog body?

Please fix up and send a v2.

Quoted 8 lines
Quoted 3 lines

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