diff options
author | Nishka Dasgupta | 2019-06-10 09:47:03 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2019-06-13 11:47:01 +0200 |
commit | 8915d9896b0022216e9f2df69a3b7b2aacdf1783 (patch) | |
tree | 286e2eb1ea2182fb99a081dac285f00313684b7c /drivers/staging/rtl8723bs/os_dep | |
parent | staging: rtl8723bs: Change type of rtw_os_recvbuf_resource_free() (diff) | |
download | kernel-qcow2-linux-8915d9896b0022216e9f2df69a3b7b2aacdf1783.tar.gz kernel-qcow2-linux-8915d9896b0022216e9f2df69a3b7b2aacdf1783.tar.xz kernel-qcow2-linux-8915d9896b0022216e9f2df69a3b7b2aacdf1783.zip |
staging: rtl8723bs: os_dep: ioctl_linux.c: Remove return variables
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>
Diffstat (limited to 'drivers/staging/rtl8723bs/os_dep')
-rw-r--r-- | drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c index fc3885d299d6..1d8f1907883f 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c @@ -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; } |