Staging: rtl8188eu: Remove redundant if condition
authorVatika Harlalka <vatikaharlalka@gmail.com>
Thu, 26 Feb 2015 13:01:52 +0000 (18:31 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Feb 2015 20:53:47 +0000 (12:53 -0800)
Remove redundant if condition as !result is always false.

Signed-off-by: Vatika Harlalka <vatikaharlalka@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/phy.c

index 6448fca5365e62e676ca1086aa880a0d3be1b3b7..e1d192fade6b1e3891efe41932ee4c6575c1aa4d 100644 (file)
@@ -346,7 +346,6 @@ void phy_sw_chnl(struct adapter *adapt, u8 channel)
 {
        struct hal_data_8188e *hal_data = GET_HAL_DATA(adapt);
        u8 tmpchannel = hal_data->CurrentChannel;
-       bool  result = true;
 
        if (hal_data->rf_chip == RF_PSEUDO_11N)
                return;
@@ -356,15 +355,10 @@ void phy_sw_chnl(struct adapter *adapt, u8 channel)
 
        hal_data->CurrentChannel = channel;
 
-       if ((!adapt->bDriverStopped) && (!adapt->bSurpriseRemoved)) {
+       if ((!adapt->bDriverStopped) && (!adapt->bSurpriseRemoved))
                phy_sw_chnl_callback(adapt, channel);
-
-               if (!result)
-                       hal_data->CurrentChannel = tmpchannel;
-
-       } else {
+       else
                hal_data->CurrentChannel = tmpchannel;
-       }
 }
 
 #define ODM_TXPWRTRACK_MAX_IDX_88E  6