mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 06:33:34 +00:00
staging: rtl8723bs: remove conversion to bool in halbtcoutsrc_Get()
Fix the following coccicheck warning: drivers/staging/rtl8723bs/hal/hal_btcoex.c:410:59-64: WARNING: conversion to bool not needed here Signed-off-by: Jason Yan <yanaijie@huawei.com> Link: https://lore.kernel.org/r/20200504113251.40791-1-yanaijie@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
b95f955674
commit
16529e3b86
@ -407,7 +407,7 @@ static u8 halbtcoutsrc_Get(void *pBtcContext, u8 getType, void *pOutBuf)
|
||||
break;
|
||||
|
||||
case BTC_GET_BL_WIFI_ENABLE_ENCRYPTION:
|
||||
*pu8 = padapter->securitypriv.dot11PrivacyAlgrthm == 0 ? false : true;
|
||||
*pu8 = padapter->securitypriv.dot11PrivacyAlgrthm != 0;
|
||||
break;
|
||||
|
||||
case BTC_GET_BL_WIFI_UNDER_B_MODE:
|
||||
|
Loading…
Reference in New Issue
Block a user