mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
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 <colin.king@canonical.com> Link: https://lore.kernel.org/r/20190702095647.26378-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
69fa65f92d
commit
2d9164321b
@ -1427,7 +1427,7 @@ static bool _rtl92e_set_rf_power_state(struct net_device *dev,
|
|||||||
"_rtl92e_set_rf_power_state() eRfOn!\n");
|
"_rtl92e_set_rf_power_state() eRfOn!\n");
|
||||||
if ((priv->rtllib->eRFPowerState == eRfOff) &&
|
if ((priv->rtllib->eRFPowerState == eRfOff) &&
|
||||||
RT_IN_PS_LEVEL(pPSC, RT_RF_OFF_LEVL_HALT_NIC)) {
|
RT_IN_PS_LEVEL(pPSC, RT_RF_OFF_LEVL_HALT_NIC)) {
|
||||||
bool rtstatus = true;
|
bool rtstatus;
|
||||||
u32 InitilizeCount = 3;
|
u32 InitilizeCount = 3;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
Loading…
Reference in New Issue
Block a user