Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp584209ybd; Sat, 29 Jun 2019 03:23:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6zPV7xfYdoeBip+vn5d7JYWmGIFym0X/tTOzF1v2j1jsFWX5hWtNmiJHvFz6nojSZE50u X-Received: by 2002:a17:90a:24ac:: with SMTP id i41mr18532524pje.124.1561803801512; Sat, 29 Jun 2019 03:23:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561803801; cv=none; d=google.com; s=arc-20160816; b=nQyG1ycrax7zl7lyfozGoefqk72jsh/dRZnZVZzGSEL2lQhczFd/7e7QBVg9lLc4hB IJGkB5G2fNdK/MNOZ1jWD/uHK5l5uTH3mMK5VOIwbTbdQOoaMPNTmkjNnYUvRQtITUkR PzQ+afGJjdHEP7v7mN9lfi7YR+vxDxpEqDUjzdVy8jeYNSILEl1IMTw3q4WTec0ILdUn XevVCZKfIkPpY/Uj3sphooZiBOyq1Zj5NPbZI7Xuh2C7En4RMd4H252sF10DVLXn4NaX 7j+eKDfy/fgUX0sRq8fltxonBKguOZyUmlC5CggrQrbTp/v9gdeDV7u2Wt32/tlEYibC yqqw== 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=6jXcyQz5oa080ljH3lxwjJW0irqf5iKTZLTX/DBR0+E=; b=CRu4djBkIlQxJjE1uJUUdgqybc2/6sjoBiU4letQo/uxIEDjaOd3IO047uRhda5Ubf jmRDMZEoGMXYTzNA1V437Me36KO9i9/XQrCbd+ztLAg7493esifpVph9ksrUmZbZwsoM v0r8ihxMgxMaylMkavC9JRM+4t01zSODIvWN9PYnC5yBfYMsfuZhTdAuhkEVavrNTLNm QS714M0KdoYMDcKte5k5ioM9669KetDBzvXcc5wjixFRVNvEyEEnsid9GiuJNp0dEFa8 xgIIQgjfZhO+z/cYBTRviFlckrds6O553dv5Q4/hdwb1FvWqaW+kQRKiNbDjrRUhZq71 vb6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gYW33GDA; 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 l21si4358042pgb.409.2019.06.29.03.23.04; Sat, 29 Jun 2019 03:23:21 -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=gYW33GDA; 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 S1726946AbfF2KV5 (ORCPT + 99 others); Sat, 29 Jun 2019 06:21:57 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:45681 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbfF2KV4 (ORCPT ); Sat, 29 Jun 2019 06:21:56 -0400 Received: by mail-pf1-f194.google.com with SMTP id r1so4195106pfq.12 for ; Sat, 29 Jun 2019 03:21:56 -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=6jXcyQz5oa080ljH3lxwjJW0irqf5iKTZLTX/DBR0+E=; b=gYW33GDAqkR+vAX51JYX0WJRg2g90O0GCNR796AKAyuwZwyqEknNkrHofqojPQgC3v 9+HBX+fe0rsmEl9m2ZcoONZrtp9V9wIbIpKBXnVT8M/kB/etHergY6GCdZDYQnPnO/Kq xDOzr/GngzypwOCdonpklP5TwfsEYM5PC88aLcBlwa7IY8Xl7txf1UX155zSXMx17ClY TVA5+WSbxbhwn0FsZoS4PuV2SgnYVfMtIszC3xUFLgyytU4U6a56IRA/uzJUjpYilXpn hdZ5iwnXPUrQorOtcFXKcPNZleCoaEMXcgRxIGbDbDvjGbOWWv5tuA4ANllXE+7PwfD3 hWVQ== 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=6jXcyQz5oa080ljH3lxwjJW0irqf5iKTZLTX/DBR0+E=; b=SOJjGLO0oYOEJOGStKHCfqbDLFdD8sLqr99x6Wo/Nkuqnjp00jnDTLC2HKC2a2LCTK VS021YnyMChde5DrexTYNO5He2wE8v19VhER7MW1Z1/WuW4OuBsNKMKSkK7SSsKQ2mX7 BKolMHYa62/BPyIoDZEHKUs3vGtqVD5SqbL46UeB2Xas/rNg/uH2vZux1+mNtzhMhF1C 0SGJacRT5VX31CqyD4T8g6Z5czix0B11OAPFpkTbrIcma6IWTR0F6ZmsGSfkkRiQhINk CztX5N4j6nOV6M/nw8iGoaXxn1xFczBpIGegXfYzr2N26XkwoGaBq/Dn0N2S9ElYv+EX 8gCA== X-Gm-Message-State: APjAAAXpUVi6ZIEjGB2VCERCB8WPLKWNeCvuU5e3SZyRvzRUEXYq1HY9 aYridq8YhkWuD5/niK8Oc9Q= X-Received: by 2002:a17:90a:26a1:: with SMTP id m30mr18988874pje.59.1561803716298; Sat, 29 Jun 2019 03:21:56 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.187]) by smtp.gmail.com with ESMTPSA id n98sm5103405pjc.26.2019.06.29.03.21.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Jun 2019 03:21:55 -0700 (PDT) Date: Sat, 29 Jun 2019 15:51:52 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Hariprasad Kelam , Nishka Dasgupta , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 03/10] staging/rtl8723bs/hal: fix comparison to true/false is error prone Message-ID: <20190629102152.GA15011@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 issues reported by checkpatch CHECK: Using comparison to false is error prone CHECK: Using comparison to true is error prone Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/hal/sdio_halinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/hal/sdio_halinit.c b/drivers/staging/rtl8723bs/hal/sdio_halinit.c index 4d06ab7..39d7ba4 100644 --- a/drivers/staging/rtl8723bs/hal/sdio_halinit.c +++ b/drivers/staging/rtl8723bs/hal/sdio_halinit.c @@ -724,7 +724,7 @@ static u32 rtl8723bs_hal_init(struct adapter *padapter) pregistrypriv = &padapter->registrypriv; if ( - adapter_to_pwrctl(padapter)->bips_processing == true && + adapter_to_pwrctl(padapter)->bips_processing && adapter_to_pwrctl(padapter)->pre_ips_type == 0 ) { unsigned long start_time; -- 2.7.4