Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4315063yba; Sun, 12 May 2019 09:54:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5RJZiefSs3ykIPIK416mm0HD/OqwSOODeQoantOvfLISL35XY1gOJ3nLPtwUQ8d4FXWtz X-Received: by 2002:a17:902:f082:: with SMTP id go2mr15757359plb.279.1557680097812; Sun, 12 May 2019 09:54:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557680097; cv=none; d=google.com; s=arc-20160816; b=jfOPDhlqpztk8aE2lmkpUlRUWBZrUZJ0oku+RK81/HUMz7YUC0bMv20s4ZaCG0e56v CzcyWE3qQW0QeukZXuwaysEjRdf+F2xxD71WbZ4jXyjE/QYXx6RwuDrKWB892bUZxTVb bTsM9ScJxEd8qOTxsVcIn84VcVcKCCpXzDF24pUmQMdxN3KUXo2Q1wm3GZdZkGlMHBcj JKdM8StjlDK1xcxGVSU38syj9Sqv2tVLmsir3giknMnRPnuldcjkYhYL6MIQs2Ih1UzW mWGCkHpYcULPwYTUmLY+yr+jtl27JaKcWNxFSLwd6CZ+6FO1zDZPNGqn+/OBGrvGNdmL 0+Zg== 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=pUkqfemPvj4U8k6I42VkBU64ojbl3SFKE12XTRr6nbI=; b=GM/WHtN2rEc4KQmj5llXjhlNHqyZQoCYnMflq/P/YP2g0s8gi/pPvTwXapaLAep5hc Wpt5f89KS8CRP4vZ8lDuE8UUwkk85Tvx+8AHkFTagYZQRZEpE6LwXmFiHPgW3T9akR8U hWSVrci4JcZ31K7UGtbMg00Q6MAeZiOFJBwQ1amMOb7Ym8Ke89nigXJ9+o8uVhlHZEVy ovxUebUXO0z+koe3yksyt9ebGAsOjyI1lF15LmeWkyC0y+1Ff3d3dCJcvkDdXjCdzqi/ blbIUlZGJE8mta+T4psvNsVBEs59IjUxzqQxNdReIkVa4L83zIIpgjoH6WzcJxnqUdor OFPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=f6lmQ0g5; 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 v3si12804765plp.361.2019.05.12.09.54.41; Sun, 12 May 2019 09:54:57 -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=f6lmQ0g5; 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 S1726948AbfELQxS (ORCPT + 99 others); Sun, 12 May 2019 12:53:18 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:35269 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726656AbfELQxS (ORCPT ); Sun, 12 May 2019 12:53:18 -0400 Received: by mail-pl1-f195.google.com with SMTP id g5so5205311plt.2 for ; Sun, 12 May 2019 09:53:17 -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=pUkqfemPvj4U8k6I42VkBU64ojbl3SFKE12XTRr6nbI=; b=f6lmQ0g5Dsaclu3LMgF/xUHC4LOXFD+rMnCi2sCWxkWNG/zOnY40KTn/HzL2/b4z+b FcDmVU9vTZZTSjOOyRcLUytpkPekVuLT5bingKQzfpymJeX4qGjlVAHG4/RZxK4Qj6/+ W7epK0SRK/tU2M1KUg4l9+2sZN32VHS3eeyv3jF+PAszSLJO0hyiix2pkfHNXIzTMksS 7E6PugJ6NbXetbCGdw1tVGtvZyQm3tRFtIH1qhbmZ405RVV+tHC3J5jOsv8hGXCz2E5s y+ehkhh2uKFA3ErVvOzht/oVAo2MfplvDgrvHYZxbJL9+ow2JgpbmohA+QV8ZiTbwv7r Eh0A== 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=pUkqfemPvj4U8k6I42VkBU64ojbl3SFKE12XTRr6nbI=; b=lhUIGAVtmnt5969zbC9tJCyuGOl9VmJ6dJ5aJccBzvfNTKphL/J+3qB5Q6r9tuKx7c LU8zxw18Guxero7SK4TVPLtgNsY+E2fr4P0z9aXX60PQBUfBJPhhWz48xlKocjpZPobC OyEwQ7WYWZGiSXTLUR1ZSbvqo+D2lEJZegneMdw9dfmSDZTg2UFpu3KtMBVbkzRkZFby 3QF4lS2s+UNhAYY07sEdzav0yipWuv9LEOBDveuOfWVDCX9+kQNnJujECQXLQsSc3c5c JQ6jeN0VB2ZmJBarhESIO7kDJnRtdaHH1Te9hJLlA8G4vJ/YNkaJTsV0lIO5S5jEWAGs WEiQ== X-Gm-Message-State: APjAAAU9GBHd6cmjV4HuXsO5DMtwpX1x/ljez1TaLW5DP76t6x6kac9m CqsGayjw5RqHBAFSEsZAUBM= X-Received: by 2002:a17:902:2bca:: with SMTP id l68mr24857776plb.301.1557679997486; Sun, 12 May 2019 09:53:17 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.73]) by smtp.gmail.com with ESMTPSA id g24sm17472311pfi.126.2019.05.12.09.53.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 May 2019 09:53:16 -0700 (PDT) Date: Sun, 12 May 2019 22:23:11 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Hans de Goede , Arnd Bergmann , Hariprasad Kelam , Hardik Singh Rathore , Jia-Ju Bai , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging :rtl8723bs :core fix WARNING: Comparison to bool Message-ID: <20190512165311.GA27289@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 warning reported by coccicheck drivers/staging/rtl8723bs/core/rtw_pwrctrl.c:181:5-40: WARNING: Comparison to bool Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c index 5c468c5..c337a528 100644 --- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c +++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c @@ -178,7 +178,7 @@ void rtw_ps_processor(struct adapter *padapter) if (pwrpriv->ips_mode_req == IPS_NONE) goto exit; - if (rtw_pwr_unassociated_idle(padapter) == false) + if (!rtw_pwr_unassociated_idle(padapter)) goto exit; if ((pwrpriv->rf_pwrstate == rf_on) && ((pwrpriv->pwr_state_check_cnts%4) == 0)) { -- 2.7.4