Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4113136yba; Sun, 12 May 2019 05:26:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4ZWQS8dE1H0QdcbxyWm8FZIRViVF8pC8TKevOpubX6H1eRlhWTndMbs1k+qBZjtJlVQLi X-Received: by 2002:a17:902:7406:: with SMTP id g6mr24221264pll.328.1557663964973; Sun, 12 May 2019 05:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557663964; cv=none; d=google.com; s=arc-20160816; b=bPw7YlXSIBN2M8FGaYwsx9NhqII2ix0OXNlALJ+n3cd3xO0yJGv2VxFE1aEo4PYY4z ghbT1nOkl+VsAYK8p2IuhiPiW4sd0lnXs9ldUSEXLI+jfLx3lVCJ7Nn9oItOF4D4hJos EdBvc/DAZ9um7FPiLdkqtZICven+fuJxi8B/F9+EVTSKK190DsXsM88pFUqh0LHuonKX ihY6aIEm+gH8j8zv0y/l+5XWdMTIui+/Wtc/gBiOIu4s23Vt9y+hHWcZWIGVfmVwN3/+ nCKtbAgHCbbU9Z3U+REEr8vtHcpMGUV4j0hoC5p4+05xqLdb7YFt8hkVffhMaSb6aHM4 O55A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=paH013GOd2gVWUwOGZuSguTs80alOhAT643zCT0EDfM=; b=UjbHacWWo8wblmitHLwAEzKY29wvd1CbzeBNRj6CfUKmto2VX23O/fVtq9+9nzqPjU sOrFA/euu4p8MOEUs8C4bfBp4LTwMXrlEzvHxZohe4u9VrCttt2Q5hoc/niXNUY/7uZs E35AW+XCaz2t8C8ulM2weEEYLm54pCvZRwhT5PtKVYmJp75s5YF1FGiGibix1J8C4UnV kMSkaruugDHIWuA7S+cfDgQupwOGTRcgwBMYqHiPV3prdeCkI2D9AnljlBPzsf3epmuA f5VFtnb0q3JIoEwDNd0rsonPpQIG6lI241y/lmK4GbD/zKeKquAnc82S92mEOoQKFgCH Eckw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uoIhMH+1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d25si12025732pge.198.2019.05.12.05.25.44; Sun, 12 May 2019 05:26:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uoIhMH+1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726672AbfELMY4 (ORCPT + 99 others); Sun, 12 May 2019 08:24:56 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:38122 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbfELMYz (ORCPT ); Sun, 12 May 2019 08:24:55 -0400 Received: by mail-pg1-f196.google.com with SMTP id j26so5301682pgl.5 for ; Sun, 12 May 2019 05:24:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=paH013GOd2gVWUwOGZuSguTs80alOhAT643zCT0EDfM=; b=uoIhMH+1+aCNFxqsoziGwT/juy8qi/hd+C1mYdyApJpsnp+/PXVXVOjJBCK9mh9EEl 4H23uB+vzxw0zllM5Je0rZOcAA4Uuo5OrI1Jg2KL7kEJr2GzwOEeY7WC0zZScTOdMbtL OKOmjt4xGJLOQxPt37x/suDUmOQXRGws65PfopnmH9FT3ygPQEMXTJUel7iXcmPET3yo INxe1Q6HEEZO7qIyHbkzi7SynVgbg8OEk5uH7zKnMV8ND5rGqNm1Rl8rTPdpiwoJSIkr ZE61O2lMpFDHYgCaHnJq3fIQviy2NI3DRIURt1iJa9wfj8rWU4KF7ORlaAObFtSa5bKF KqKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=paH013GOd2gVWUwOGZuSguTs80alOhAT643zCT0EDfM=; b=Xwh4S0WOzaB9MtdOftYw6ydqKt2MFsOHX56fqZWO4cTC/kC21k8+8ps4qthTZ2VCTG 6F5dLVCankNGgsWbyLU1Su9VoPSdUSy76W7JwRO9t1DaXOg+56UQ4yhXebLrg06ATLOV pliDbcomMkTR8wQl1NI/XJ3I8LhL0SOkSjhh5ref0LazVOD+6Io8o2/vuzigTLAJiGsX SX4cd82tEPCvY94gIz+kx88Y5r+FcyGj/eqHThqMIIB0Dkr/YJw0QpcVubUpSZChvH0Q 1bb+az2YyUb3XTkLkS5YaQfG3C7z3e77crc/iHGAcSi74SNmM6G5wfhYUz0ATE7auRt4 p7ig== X-Gm-Message-State: APjAAAXI3jcY14/gpHvMRmmvUqlSYql6xbY6JLnIEajVx3omvQqXlK0U IW1f5vd/TmxypXl2r61tLxY= X-Received: by 2002:a62:ae05:: with SMTP id q5mr26758604pff.13.1557663895110; Sun, 12 May 2019 05:24:55 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.73]) by smtp.gmail.com with ESMTPSA id q20sm19280391pfi.166.2019.05.12.05.24.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 May 2019 05:24:54 -0700 (PDT) Date: Sun, 12 May 2019 17:54:49 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Nishka Dasgupta , Hariprasad Kelam , Colin Ian King , Arnd Bergmann , Hardik Singh Rathore , Payal Kshirsagar , Emanuel Bennici , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, viswanath.barenkala@gmail.com Subject: [PATCH] staging: rtl8723bs: core fix warning Comparison to bool Message-ID: <20190512122449.GA28268@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fix below issue reported by coccicheck drivers/staging/rtl8723bs/core/rtw_mlme.c:1675:6-10: WARNING: Comparison to bool Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c index 5f78f1e..d26d8cf 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme.c @@ -1672,7 +1672,7 @@ void rtw_stadel_event_callback(struct adapter *adapter, u8 *pbuf) roam_target = pmlmepriv->roam_network; } - if (roam == true) { + if (roam) { if (rtw_to_roam(adapter) > 0) rtw_dec_to_roam(adapter); /* this stadel_event is caused by roaming, decrease to_roam */ else if (rtw_to_roam(adapter) == 0) -- 2.7.4