Skip to contentSkip to conversation

Staging: rtl8723au: Remove return in void function

PATCH Superseded Melike Yurtoglu 2 participants 2 messages Feb 25, 2015 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtl8723au: Remove return in void function

WARNING: void function return statements are not generally useful Remove return in void function. That was found by running checkpatch.

---
 drivers/staging/rtl8723au/hal/hal_com.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/rtl8723au/hal/hal_com.c +0 -1
index bf4cae2..ce0516b 100644
@@ -237,7 +237,6 @@ void HalSetBrateCfg23a(struct rtw_adapter *padapter, u8 *mBratesOS)
 		/*  Ziv - Check */
 	rtl8723au_write8(padapter, REG_INIRTS_RATE_SEL, rate_index);
 
-	return;
 }
 
 static void _OneOutPipeMapping(struct rtw_adapter *pAdapter)
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 13 lines · Melike Yurtoglu

WARNING: void function return statements are not generally useful Remove return in void function. That was found by running checkpatch.

---
 drivers/staging/rtl8723au/hal/hal_com.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/rtl8723au/hal/hal_com.c +0 -0
index bf4cae2..ce0516b 100644

drivers/staging/rtl8723au/hal/hal_com.c void HalSetBrateCfg23a(struct rtw_adapter *padapter, u8 *mBratesOS) · line 239

Quoted 3 lines
drivers/staging/rtl8723au/hal/hal_com.c +0 -0
@@ -237,7 +237,6 @@ void HalSetBrateCfg23a(struct rtw_adapter *padapter, u8 *mBratesOS)
 		/*  Ziv - Check */
 	rtl8723au_write8(padapter, REG_INIRTS_RATE_SEL, rate_index);
 

You don't need this blank line either.

julia

Quoted 14 lines
drivers/staging/rtl8723au/hal/hal_com.c +0 -1
-	return;
 }
 
 static void _OneOutPipeMapping(struct rtw_adapter *pAdapter)
Signature · 8 lines
1.8.3.2

-- 
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1424898905-6290-1-git-send-email-aysemelikeyurtoglu%40gmail.com.
For more options, visit https://groups.google.com/d/optout.