From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8195008478716230689==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] mt6625l: fix boolconv.cocci warnings Date: Mon, 06 Jul 2020 14:41:08 +0800 Message-ID: <20200706064108.GA30801@9cf1f7d5106f> In-Reply-To: <202007061455.Nn14Bg8E%lkp@intel.com> List-Id: --===============8195008478716230689== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot drivers/misc/mediatek/btif/common/mtk_btif_exp.c:592:64-69: WARNING: conver= sion to bool not needed here drivers/misc/mediatek/btif/common/mtk_btif_exp.c:406:64-69: WARNING: conver= sion to bool not needed here Remove unneeded conversion to bool Semantic patch information: Relational and logical operators evaluate to bool, explicit conversion is overly verbose and unneeded. Generated by: scripts/coccinelle/misc/boolconv.cocci Fixes: 5a3d075a983c ("mt6625l: include wifi-folder") Signed-off-by: kernel test robot --- tree: https://github.com/frank-w/BPI-R2-4.14 5.8-wifi head: 4b8951570a4f2ef564d134f5aa8779fd067af1c9 commit: 5a3d075a983c166a2a4294c272b47698e24c97c6 [5/11] mt6625l: include wi= fi-folder Please take the patch only if it's a positive warning. Thanks! mtk_btif_exp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/misc/mediatek/btif/common/mtk_btif_exp.c +++ b/drivers/misc/mediatek/btif/common/mtk_btif_exp.c @@ -403,7 +403,7 @@ int mtk_wcn_btif_loopback_ctrl(unsigned if (p_btif =3D=3D NULL) return E_BTIF_INVAL_PARAM; i_ret =3D - btif_lpbk_ctrl(p_btif, enable =3D=3D BTIF_LPBK_ENABLE ? true : false); + btif_lpbk_ctrl(p_btif, enable =3D=3D BTIF_LPBK_ENABLE); = return i_ret; } @@ -589,7 +589,7 @@ int btif_loopback_ctrl_no_id(ENUM_BTIF_L p_mtk_btif p_btif =3D &g_btif[0]; = i_ret =3D - btif_lpbk_ctrl(p_btif, enable =3D=3D BTIF_LPBK_ENABLE ? true : false); + btif_lpbk_ctrl(p_btif, enable =3D=3D BTIF_LPBK_ENABLE); = return i_ret; } --===============8195008478716230689==--