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 wifi-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 == 0? */ cfg80211_disconnected(prGlueP2pInfo->prDevHandler, /* struct net_device * dev, */ u2StatusReason, pucRxIEBuf, u2RxIELen, - eStatus == WLAN_STATUS_MEDIA_DISCONNECT_LOCALLY ? true : false, + eStatus == WLAN_STATUS_MEDIA_DISCONNECT_LOCALLY, GFP_KERNEL); }