diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-08-13 13:48:38 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-08-14 13:20:13 +0200 |
commit | 759b2e69238dff3f072e1c8e231aecf662082b6c (patch) | |
tree | a800b4eb52acc4c6f4c1682e6f0652180d69403f /drivers/staging/rtl8723bs | |
parent | b1198cca2982f02c27459cfd67d081d7c1460cf9 (diff) | |
download | linux-stable-759b2e69238dff3f072e1c8e231aecf662082b6c.tar.gz linux-stable-759b2e69238dff3f072e1c8e231aecf662082b6c.tar.bz2 linux-stable-759b2e69238dff3f072e1c8e231aecf662082b6c.zip |
staging: rtl8723bs: remove redundant assignment to ret
Variable ret is initialized to a value that is never read and it is
re-assigned later. The initialization is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190813124838.1317-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs')
-rw-r--r-- | drivers/staging/rtl8723bs/core/rtw_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_io.c b/drivers/staging/rtl8723bs/core/rtw_io.c index a92bc19b196a..57168578663a 100644 --- a/drivers/staging/rtl8723bs/core/rtw_io.c +++ b/drivers/staging/rtl8723bs/core/rtw_io.c @@ -142,7 +142,7 @@ u32 _rtw_write_port(struct adapter *adapter, u32 addr, u32 cnt, u8 *pmem) u32 (*_write_port)(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, u8 *pmem); struct io_priv *pio_priv = &adapter->iopriv; struct intf_hdl *pintfhdl = &(pio_priv->intf); - u32 ret = _SUCCESS; + u32 ret; _write_port = pintfhdl->io_ops._write_port; |