Skip to contentSkip to conversation

Staging: rtl8188eu: Replace unneeded switch-case block

PATCH New Vatika Harlalka 1 participant 1 message Feb 23, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtl8188eu: Replace unneeded switch-case block

Replace switch-case block with single if statement to increase code readability.

---
 drivers/staging/rtl8188eu/hal/phy.c | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)
drivers/staging/rtl8188eu/hal/phy.c +1 -14
index 3950cb3..623fb4f 100644
@@ -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,
Signature · 1 line
1.9.1