summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorBryan Brattlof <hello@bryanbrattlof.com>2021-04-09 20:13:08 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-10 10:28:24 +0200
commit98a847ae5d5d3eab47983898363b34def5b3318d (patch)
treeca0042cddb5530d94b80295c684d7c4e8b92f316 /drivers/staging
parentd55c46f360279862d62dc03b8de3104e2786f026 (diff)
downloadlinux-98a847ae5d5d3eab47983898363b34def5b3318d.tar.bz2
staging: rtl8723bs: remove redundant initialization
The variable ret is being initialized as 0 and is never used until it's updated by sdio_register_driver() This removes the redundant initialization of ret Signed-off-by: Bryan Brattlof <hello@bryanbrattlof.com> Link: https://lore.kernel.org/r/20210409201235.407671-1-hello@bryanbrattlof.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/rtl8723bs/os_dep/sdio_intf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
index 5de4c70aab6a..9fd926e1698f 100644
--- a/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
+++ b/drivers/staging/rtl8723bs/os_dep/sdio_intf.c
@@ -503,7 +503,7 @@ static int rtw_sdio_resume(struct device *dev)
static int __init rtw_drv_entry(void)
{
- int ret = 0;
+ int ret;
DBG_871X_LEVEL(_drv_always_, "module init start\n");
dump_drv_version(RTW_DBGDUMP);