[PATCH] staging: rtl8192e: remove redundant braces from single lin=

From: Ahmet Sezgin Duran
Date: Tue Feb 06 2024 - 14:28:55 EST


This commit cleans up redundant braces from single line if-else blocks
for improved readability.

Signed-off-by: Ahmet Sezgin Duran <sezgin.duran@xxxxxxxxxxxx>
---
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/stagi=
ng/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;
=20
reg =3D rtl92e_readl(dev, RCR);
- if (priv->rtllib->link_state =3D=3D MAC80211_LINKED) {
+ if (priv->rtllib->link_state =3D=3D MAC80211_LINKED)
priv->receive_config =3D reg |=3D RCR_CBSSID;
- } else {
+ else
priv->receive_config =3D reg &=3D ~RCR_CBSSID;
- }
=20
rtl92e_writel(dev, RCR, reg);
}
diff --git a/drivers/staging/rtl8192e/rtl819x_HTProc.c b/drivers/staging/rt=
l8192e/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)
}
=20
ht_info->current_mpdu_density =3D 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 =3D false;
- }
+
ht_info->cur_rx_reorder_enable =3D 1;
=20
if (pPeerHTCap->MCS[0] =3D=3D 0)
--=20
2.43.0