Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4110341yba; Sun, 12 May 2019 05:22:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxu3frVPj47f7A15imfVh/d//h5aqLWRVKZzfXs8VczqKqyxwOUK0J3RL6YQG1KI0IauWO8 X-Received: by 2002:aa7:9f01:: with SMTP id g1mr14800925pfr.259.1557663737729; Sun, 12 May 2019 05:22:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557663737; cv=none; d=google.com; s=arc-20160816; b=dsQBBKk/YBjSb33daP2p1ThqdYpR9rx3lLn2zH0PQwbIXRJbJ+t+UG2U+gEsuZWyFL wqVzUCR5SNViSQUgc5i5VRPUDM8wYhVVzxFT5L1m3H2vCCipnM4gwgEwUZgbq9bWRjLV BwIWRmVHOiwo0EvGXyD/VPqZG1HAhLJuMI4ELqMtOd/y6G0fjWh4o5w4ihDfYorX3tAa nbhPdwPvTpxqmpwoBShK1Zi+jTXAIbAL1HxGSNa9sVup2PgyhSBDIguaW84ENvVmMjYl MKwzEnBBsG7RYObNleusCpGLpyR7KB/C5TfCn2EGZN+rm83jQUFnIpmuFA2ZD+gxVJP7 lgNw== 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=XnvQJc31NkYJDKHGe2ZPAaF9BNwwW3ZlTSoXFk3nhO4=; b=Zl7YzYo0KnknH3L7MPks061dNiJQcr6TUyPYt8lf3CnFDs1rE5g/Fl7eYOMAcutUIF 7YoriWvH2W2NBvS2JGizaZX0lrkvtfgSvmvKLc7MhKB7dPShAPW6nPmIPGLHD9g+VRjV ItBWcU1zMJFMWbwkfFkYhBnMR4Be0ka20dYvqYQjXphkx+1BsFjdwCj+ykAvz4s2/F5m XuOLhiXzPvIzVdauw/fBauM1aiy6PY7wRSiNwggtaAhGGYbIJnRLsOZt/feTmXHcnob4 x8ee4EDrn4vWE9Cw5YrjAsrOPi7Q0CnylOnAyWAgoRGzCY3k5gDqfgIwKQJCakhskiDX IZrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Qni6gC2q; 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 v40si13223983plg.409.2019.05.12.05.22.01; Sun, 12 May 2019 05:22:17 -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=Qni6gC2q; 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 S1726718AbfELMTb (ORCPT + 99 others); Sun, 12 May 2019 08:19:31 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:36598 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726536AbfELMTb (ORCPT ); Sun, 12 May 2019 08:19:31 -0400 Received: by mail-pl1-f196.google.com with SMTP id d21so5029350plr.3 for ; Sun, 12 May 2019 05:19:30 -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=XnvQJc31NkYJDKHGe2ZPAaF9BNwwW3ZlTSoXFk3nhO4=; b=Qni6gC2qcHVxnGYXbzGXFA9Yp5N6QGoVnRMAzbqDpG5X4dbAjsX3knozjJcOCcsecR GOzEjXGzJkgzewVsUxOpYfTjVOHxBedYDgI2eB//Qw4tqPeHpxAUq1/yEzzt/plXutlS 1OMRMgzbAZErJJbiqmvqlTytA3mDI5Tz3t6eZw3Tq1YK65C6kZRu75Wa+dLFhGsxf254 dwFRqJRyR9jVVMoJpS49BSe5kt6wfvu2Yx1w3c9JTX8DH9mUCj9I5Oqfiqh+fjEfrNmi F0U/wosSM5aAlfjQSKX6ATNwB8/GzzNFXMpxmvujMUU0J0xDVoSe75ZRGYSD3fjOaQWN 105w== 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=XnvQJc31NkYJDKHGe2ZPAaF9BNwwW3ZlTSoXFk3nhO4=; b=kd26TP+h8cbdqrXrhjWFF4whYHFiOwPmRihizJ04Vvw/5xwU32Qp8H00icH4EkiwEM oEURNb2RL8S/ouBHArq/mHffQgqcuOuRWNHp6ynVxKsldB9SjV8SY0+20+ApL/OEvq4q SHbUoFCyDRFRfw9n/A36Xlz7v+7gfEa0o2gpsuuExFOZ11wME81FTeLq9HQYVkQW7VyF 4jlarQMoX+GmviLPJ6fNLMWp03QKln9AkKooJ2ebIswLwvD3z0s18NnqETb0bea+MhS5 v4ZQ+IBST5E/HgRKX1IjvGhInXcIZxvaZutzyIzt2Wz+3Ftlh46kFUTIRpngqcmiujXL 0djg== X-Gm-Message-State: APjAAAU6mOA38QMdt0GiNidI13+SLYBtw+lO9chlVcKcJp5JUbOV9bov 1Toie5pU5TA4uwEf5FlgRPc= X-Received: by 2002:a17:902:2827:: with SMTP id e36mr24196393plb.45.1557663570546; Sun, 12 May 2019 05:19:30 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.73]) by smtp.gmail.com with ESMTPSA id k6sm9195910pfi.86.2019.05.12.05.19.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 May 2019 05:19:29 -0700 (PDT) Date: Sun, 12 May 2019 17:49:23 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Madhumitha Prabakaran , Hans de Goede , Arnd Bergmann , Emanuel Bennici , Dan Carpenter , Hariprasad Kelam , Hardik Singh Rathore , 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: <20190512121923.GA28044@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_cmd.c:1741:7-17: WARNING: Comparison to bool Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/core/rtw_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c index ecaa769..fcd26e1 100644 --- a/drivers/staging/rtl8723bs/core/rtw_cmd.c +++ b/drivers/staging/rtl8723bs/core/rtw_cmd.c @@ -1738,7 +1738,7 @@ static void rtw_chk_hi_queue_hdl(struct adapter *padapter) pstapriv->tim_bitmap &= ~BIT(0); pstapriv->sta_dz_bitmap &= ~BIT(0); - if (update_tim == true) + if (update_tim) update_beacon(padapter, _TIM_IE_, NULL, true); } else {/* re check again */ rtw_chk_hi_queue_cmd(padapter); -- 2.7.4