Skip to contentSkip to conversation

staging: rtl8723bs: os_dep: ioctl_linux.c: Remove return variables

PATCH New Nishka Dasgupta 1 participant 1 message Jun 7, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: rtl8723bs: os_dep: ioctl_linux.c: Remove return variables

Remove return variables and return the values directly, as the functions all return 0 in all cases.
Issue found with Coccinelle.

---
 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +3 -9
index 236a462a4936..a6fce63ad4db 100644
@@ -2601,9 +2601,7 @@ static int rtw_p2p_set(struct net_device *dev,
                                union iwreq_data *wrqu, char *extra)
 {
 
-	int ret = 0;
-
-	return ret;
+	return 0;
 
 }
 
@@ -2612,9 +2610,7 @@ static int rtw_p2p_get(struct net_device *dev,
                                union iwreq_data *wrqu, char *extra)
 {
 
-	int ret = 0;
-
-	return ret;
+	return 0;
 
 }
 
@@ -2623,9 +2619,7 @@ static int rtw_p2p_get2(struct net_device *dev,
 						union iwreq_data *wrqu, char *extra)
 {
 
-	int ret = 0;
-
-	return ret;
+	return 0;
 
 }
 
Signature · 1 line
2.19.1