summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu/hal
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-07-26 13:48:03 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-30 09:54:48 +0200
commit36475456f3530491460453baae591b0bfd2e94be (patch)
treea83807a1c732894ab3ecc0391ea1a8a87001ab9d /drivers/staging/rtl8188eu/hal
parent91e590851f51064a2f4cd11cf6ea01c21c4490bc (diff)
downloadlinux-36475456f3530491460453baae591b0bfd2e94be.tar.gz
linux-36475456f3530491460453baae591b0bfd2e94be.tar.bz2
linux-36475456f3530491460453baae591b0bfd2e94be.zip
staging: rtl8188eu: remove redundant assignment to rtstatus
Variable rtstatus 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/20190726124803.11349-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/hal')
-rw-r--r--drivers/staging/rtl8188eu/hal/rf_cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/hal/rf_cfg.c b/drivers/staging/rtl8188eu/hal/rf_cfg.c
index 739e62dc60e3..47b1bf5a6143 100644
--- a/drivers/staging/rtl8188eu/hal/rf_cfg.c
+++ b/drivers/staging/rtl8188eu/hal/rf_cfg.c
@@ -222,7 +222,7 @@ bool rtl88eu_phy_rf_config(struct adapter *adapt)
{
struct hal_data_8188e *hal_data = adapt->HalData;
u32 u4val = 0;
- bool rtstatus = true;
+ bool rtstatus;
struct bb_reg_def *pphyreg;
pphyreg = &hal_data->PHYRegDef[RF90_PATH_A];