Skip to contentSkip to conversation

staging: rtl8723bs: remove unnecessary braces in rtw_wlan_util.c

PATCH In review Ruziev Miraly 2 participants 2 messages Jul 1 – Jul 7 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8723bs: remove unnecessary braces in rtw_wlan_util.c

Remove unnecessary braces for a single statement block to comply with the Linux kernel coding style.

---
 drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/rtl8723bs/core/rtw_wlan_util.c +1 -2
index 1d37c2d5b..cc05decd4 100644
@@ -256,9 +256,8 @@ inline void rtw_set_oper_ch(struct adapter *adapter, u8 ch)
 {
 	struct dvobj_priv *dvobj = adapter_to_dvobj(adapter);
 
-	if (dvobj->oper_channel != ch) {
+	if (dvobj->oper_channel != ch)
 		dvobj->on_oper_ch_time = jiffies;
-	}
 
 	dvobj->oper_channel = ch;
 }
Signature · 1 line
2.54.0
maintainer
#1 lore raw
Quoted 26 lines · Ruziev Miraly

Remove unnecessary braces for a single statement block to comply with the Linux kernel coding style.

---
 drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/rtl8723bs/core/rtw_wlan_util.c +1 -2
index 1d37c2d5b..cc05decd4 100644
@@ -256,9 +256,8 @@ inline void rtw_set_oper_ch(struct adapter *adapter, u8 ch)
 {
 	struct dvobj_priv *dvobj = adapter_to_dvobj(adapter);
 
-	if (dvobj->oper_channel != ch) {
+	if (dvobj->oper_channel != ch)
 		dvobj->on_oper_ch_time = jiffies;
-	}
 
 	dvobj->oper_channel = ch;
 }
Signature · 1 line
2.54.0

Someone already submitted this patch before you did, sorry.

greg k-h