mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 19:51:25 -04:00
staging: rtl8723bs: simplify if else statement
Simplify if else statement to a single function call by passing the variable. Suggested-by: Andreas Schwab <schwab@linux-m68k.org> Signed-off-by: Michael Straube <straube.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
d2ab9916f0
commit
9d4bedcbf2
@@ -115,11 +115,7 @@ s32 rtw_btcoex_IsBTCoexCtrlAMPDUSize(struct adapter *padapter)
|
||||
|
||||
void rtw_btcoex_SetManualControl(struct adapter *padapter, u8 manual)
|
||||
{
|
||||
if (true == manual) {
|
||||
hal_btcoex_SetManualControl(padapter, true);
|
||||
} else{
|
||||
hal_btcoex_SetManualControl(padapter, false);
|
||||
}
|
||||
hal_btcoex_SetManualControl(padapter, manual);
|
||||
}
|
||||
|
||||
u8 rtw_btcoex_IsBtControlLps(struct adapter *padapter)
|
||||
|
||||
Reference in New Issue
Block a user