Skip to content

Commit

Permalink
staging: rtl8723bs: simplify if else statement
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Straube authored and Greg Kroah-Hartman committed Jul 2, 2018
1 parent d2ab991 commit 9d4bedc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/staging/rtl8723bs/core/rtw_btcoex.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9d4bedc

Please sign in to comment.