From: Colin Ian King Date: Tue, 2 Jul 2019 09:56:47 +0000 (+0100) Subject: staging: rtl8192e: remove redundant initialization of rtstatus X-Git-Tag: v5.15~5977^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d9164321b6c9710326c12c9db19af6e2ce3dc85;p=platform%2Fkernel%2Flinux-starfive.git staging: rtl8192e: remove redundant initialization of rtstatus Variable rtstatus is being initialized with a value that is never read as it is being overwritten inside a do-while loop. Clean up the code by removing the redundant initialization. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King Link: https://lore.kernel.org/r/20190702095647.26378-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c index 5215a0b..7d78f16 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c @@ -1427,7 +1427,7 @@ static bool _rtl92e_set_rf_power_state(struct net_device *dev, "_rtl92e_set_rf_power_state() eRfOn!\n"); if ((priv->rtllib->eRFPowerState == eRfOff) && RT_IN_PS_LEVEL(pPSC, RT_RF_OFF_LEVL_HALT_NIC)) { - bool rtstatus = true; + bool rtstatus; u32 InitilizeCount = 3; do {