aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723bs/hal/hal_btcoex.c
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-05-04 19:32:51 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-05 12:28:58 +0200
commit16529e3b8655b9b8bff776ecc4036f07711658a4 (patch)
tree68a78740f2f1cdd4bd30b1ada298307b99771322 /drivers/staging/rtl8723bs/hal/hal_btcoex.c
parentstaging: rtl8723bs: os_dep: Cleanup pointer casting code style (diff)
downloadlinux-dev-16529e3b8655b9b8bff776ecc4036f07711658a4.tar.xz
linux-dev-16529e3b8655b9b8bff776ecc4036f07711658a4.zip
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>
Diffstat (limited to 'drivers/staging/rtl8723bs/hal/hal_btcoex.c')
-rw-r--r--drivers/staging/rtl8723bs/hal/hal_btcoex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/hal/hal_btcoex.c b/drivers/staging/rtl8723bs/hal/hal_btcoex.c
index a6ed1bb9945e..3705a60a0546 100644
--- a/drivers/staging/rtl8723bs/hal/hal_btcoex.c
+++ b/drivers/staging/rtl8723bs/hal/hal_btcoex.c
@@ -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: