]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rtl8723bs: os_dep: ioctl_linux.c: Remove return variables
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Mon, 10 Jun 2019 07:47:03 +0000 (13:17 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Jun 2019 09:47:01 +0000 (11:47 +0200)
Remove return variables and in multiple functions and return the values
directly, as the functions all return 0 in all cases.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c

index fc3885d299d61198b378d8834bb0d287360859a2..1d8f1907883f2748627a2d950c852fa5fcff2234 100644 (file)
@@ -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;
 
 }