Staging: rtl8188eu: Replace unneeded switch-case block
authorVatika Harlalka <vatikaharlalka@gmail.com>
Mon, 23 Feb 2015 09:11:07 +0000 (14:41 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Feb 2015 20:45:32 +0000 (12:45 -0800)
Replace switch-case block with single if statement to
increase code readability.

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

index 3950cb35029eb722919b542ca6a7061fc450e93f..623fb4f4335ad5903f941d52d6f268ea9a5edaae 100644 (file)
@@ -302,21 +302,8 @@ static void phy_set_bw_mode_callback(struct adapter *adapt)
        }
 
        /* Set RF related register */
-       switch (hal_data->rf_chip) {
-       case RF_8225:
-               break;
-       case RF_8256:
-               break;
-       case RF_8258:
-               break;
-       case RF_PSEUDO_11N:
-               break;
-       case RF_6052:
+       if (hal_data->rf_chip == RF_6052)
                rtl88eu_phy_rf6052_set_bandwidth(adapt, hal_data->CurrentChannelBW);
-               break;
-       default:
-               break;
-       }
 }
 
 void phy_set_bw_mode(struct adapter *adapt, enum ht_channel_width bandwidth,