From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============6313915248563372163==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [PATCH] mt6625l: fix boolconv.cocci warnings Date: Sun, 12 Jul 2020 20:19:09 +0800 Message-ID: <20200712121909.GA72349@f669aaa75a90> In-Reply-To: <202007122043.encHIg4V%lkp@intel.com> List-Id: --===============6313915248563372163== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: kernel test robot drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.c:1070:68-= 73: WARNING: conversion 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: 9a72d145abe4 ("mt6625l: include wifi-folder") Signed-off-by: kernel test robot --- tree: https://github.com/frank-w/BPI-R2-4.14 5.8-rc head: ca0d6f7786586ca7ba424d5967d780dd3c75748b commit: 9a72d145abe49d9cb1e16d479b0b18caa20cdd71 [5/38] mt6625l: include wi= fi-folder Please take the patch only if it's a positive warning. Thanks! gl_p2p_kal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.c +++ b/drivers/misc/mediatek/connectivity/wlan/gen2/os/linux/gl_p2p_kal.c @@ -1067,7 +1067,7 @@ kalP2PGCIndicateConnectionStatus(IN P_GL /* Disconnect, what if u2StatusReason =3D=3D 0? */ cfg80211_disconnected(prGlueP2pInfo->prDevHandler, /* struct net_device= * dev, */ u2StatusReason, pucRxIEBuf, u2RxIELen, = - eStatus =3D=3D WLAN_STATUS_MEDIA_DISCONNECT_LOCALLY ? true : fa= lse, + eStatus =3D=3D WLAN_STATUS_MEDIA_DISCONNECT_LOCALLY, GFP_KERNEL); } =20 --===============6313915248563372163==--