Commit 9d4bedcb authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman

staging: rtl8723bs: simplify if else statement

Simplify if else statement to a single function call
by passing the variable.
Suggested-by: default avatarAndreas Schwab <schwab@linux-m68k.org>
Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d2ab9916
...@@ -115,11 +115,7 @@ s32 rtw_btcoex_IsBTCoexCtrlAMPDUSize(struct adapter *padapter) ...@@ -115,11 +115,7 @@ s32 rtw_btcoex_IsBTCoexCtrlAMPDUSize(struct adapter *padapter)
void rtw_btcoex_SetManualControl(struct adapter *padapter, u8 manual) void rtw_btcoex_SetManualControl(struct adapter *padapter, u8 manual)
{ {
if (true == manual) { hal_btcoex_SetManualControl(padapter, manual);
hal_btcoex_SetManualControl(padapter, true);
} else{
hal_btcoex_SetManualControl(padapter, false);
}
} }
u8 rtw_btcoex_IsBtControlLps(struct adapter *padapter) u8 rtw_btcoex_IsBtControlLps(struct adapter *padapter)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment