Skip to contentSkip to conversation

Staging: rtl8192e: fix a brace style issue

PATCH In review Rigel Di Scala 2 participants 2 messages Oct 12, 2022 – Oct 14, 2022 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtl8192e: fix a brace style issue

Fixed a coding style issue affecting a conditional if statement.

---
 drivers/staging/rtl8192e/rtl819x_BAProc.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +2 -3
index 19d13b3fc..e932ad1a9 100644
@@ -180,11 +180,10 @@ static void rtllib_send_ADDBAReq(struct rtllib_device *ieee, u8 *dst,
 
 	skb = rtllib_ADDBA(ieee, dst, pBA, 0, ACT_ADDBAREQ);
 
-	if (skb) {
+	if (skb)
 		softmac_mgmt_xmit(skb, ieee);
-	} else {
+	else
 		netdev_dbg(ieee->dev, "Failed to generate ADDBAReq packet.\n");
-	}
 }
 
 static void rtllib_send_ADDBARsp(struct rtllib_device *ieee, u8 *dst,
Signature · 1 line
2.37.3
Tested-by on v1 1/1
#1 lore raw
Quoted 15 lines · Rigel Di Scala

Fixed a coding style issue affecting a conditional if statement.

---
  drivers/staging/rtl8192e/rtl819x_BAProc.c | 5 ++---
  1 file changed, 2 insertions(+), 3 deletions(-)
drivers/staging/rtl8192e/rtl819x_BAProc.c +0 -0
index 19d13b3fc..e932ad1a9 100644
@@ -180,11 +180,10 @@ static void rtllib_send_ADDBAReq(struct rtllib_device *ieee, u8 *dst,
 
  	skb = rtllib_ADDBA(ieee, dst, pBA, 0, ACT_ADDBAREQ);
 

drivers/staging/rtl8192e/rtl819x_BAProc.c static void rtllib_send_ADDBAReq(struct rtllib_device *ieee, u8 *dst, · line 189

Quoted 10 lines
drivers/staging/rtl8192e/rtl819x_BAProc.c +2 -3
-	if (skb) {
+	if (skb)
  		softmac_mgmt_xmit(skb, ieee);
-	} else {
+	else
  		netdev_dbg(ieee->dev, "Failed to generate ADDBAReq packet.\n");
-	}
  }
 
  static void rtllib_send_ADDBARsp(struct rtllib_device *ieee, u8 *dst,