Commit 8e2c69b6 authored by Vatika Harlalka's avatar Vatika Harlalka Committed by Greg Kroah-Hartman

Staging: rtl8188eu: Remove redundant if condition

Remove redundant if condition as !result is always false.
Signed-off-by: default avatarVatika Harlalka <vatikaharlalka@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1068fb67
...@@ -346,7 +346,6 @@ void phy_sw_chnl(struct adapter *adapt, u8 channel) ...@@ -346,7 +346,6 @@ void phy_sw_chnl(struct adapter *adapt, u8 channel)
{ {
struct hal_data_8188e *hal_data = GET_HAL_DATA(adapt); struct hal_data_8188e *hal_data = GET_HAL_DATA(adapt);
u8 tmpchannel = hal_data->CurrentChannel; u8 tmpchannel = hal_data->CurrentChannel;
bool result = true;
if (hal_data->rf_chip == RF_PSEUDO_11N) if (hal_data->rf_chip == RF_PSEUDO_11N)
return; return;
...@@ -356,15 +355,10 @@ void phy_sw_chnl(struct adapter *adapt, u8 channel) ...@@ -356,15 +355,10 @@ void phy_sw_chnl(struct adapter *adapt, u8 channel)
hal_data->CurrentChannel = channel; hal_data->CurrentChannel = channel;
if ((!adapt->bDriverStopped) && (!adapt->bSurpriseRemoved)) { if ((!adapt->bDriverStopped) && (!adapt->bSurpriseRemoved))
phy_sw_chnl_callback(adapt, channel); phy_sw_chnl_callback(adapt, channel);
else
if (!result)
hal_data->CurrentChannel = tmpchannel;
} else {
hal_data->CurrentChannel = tmpchannel; hal_data->CurrentChannel = tmpchannel;
}
} }
#define ODM_TXPWRTRACK_MAX_IDX_88E 6 #define ODM_TXPWRTRACK_MAX_IDX_88E 6
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment