mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
Staging: rtl8188eu: Replace unneeded switch-case block
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>
This commit is contained in:
parent
9734d632bb
commit
efb8d49794
1 changed files with 1 additions and 14 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue