aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
diff options
context:
space:
mode:
authorHariprasad Kelam <hariprasad.kelam@gmail.com>2019-05-13 16:45:18 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-20 07:40:39 +0200
commita8f7e0c9b9ae8a7fdc7be33cda6003659c14028f (patch)
tree96511bebd340003ee588386d47218fdae00db82d /drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
parentStaging: rtl8723bs: os_dep: Fix if-else coding style issues (diff)
downloadlinux-dev-a8f7e0c9b9ae8a7fdc7be33cda6003659c14028f.tar.xz
linux-dev-a8f7e0c9b9ae8a7fdc7be33cda6003659c14028f.zip
staging: rtl8723bs: os_dep: Remove Unneeded variable ret
fix below issue reported by coccicheck drivers/staging/rtl8723bs/os_dep/ioctl_linux.c:2685:5-8: Unneeded variable: "ret". Return "0" on line 3266 Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com> ---- Changes in v2: - make subject line more clean Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
-rw-r--r--drivers/staging/rtl8723bs/os_dep/ioctl_linux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
index 9a1192e10e13..74a7328b5dd5 100644
--- a/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
+++ b/drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
@@ -2682,7 +2682,6 @@ static int rtw_dbg_port(struct net_device *dev,
struct iw_request_info *info,
union iwreq_data *wrqu, char *extra)
{
- int ret = 0;
u8 major_cmd, minor_cmd;
u16 arg;
u32 extra_arg, *pdata, val32;
@@ -3263,7 +3262,7 @@ static int rtw_dbg_port(struct net_device *dev,
}
- return ret;
+ return 0;
}