mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
staging: rtl8723bs: wifi_regd.c: remove superfluous braces
This patch removes unnecessary braces in an if/else-construct, thereby fixing both a checkpatch.pl warning about superfluous braces and an error about an ill-placed closing brace preceding the "else" keyword. Signed-off-by: Fabian Wolff <[email protected]> Signed-off-by: Mate Horvath <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
dae24da62d
commit
a8e1afccdc
1 changed files with 2 additions and 4 deletions
|
|
@ -96,12 +96,10 @@ static void _rtw_reg_apply_flags(struct wiphy *wiphy)
|
|||
|
||||
ch = ieee80211_get_channel(wiphy, freq);
|
||||
if (ch) {
|
||||
if (channel_set[i].ScanType == SCAN_PASSIVE) {
|
||||
if (channel_set[i].ScanType == SCAN_PASSIVE)
|
||||
ch->flags = IEEE80211_CHAN_NO_IR;
|
||||
}
|
||||
else {
|
||||
else
|
||||
ch->flags = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue