Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp97435ybi; Tue, 18 Jun 2019 18:16:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqwi6mOEY9eF9g3uhKooVfDTuqqvYO4CImCehI77rs5mnBcPicpgfIlWPxz4eCxlSrAgmgbZ X-Received: by 2002:a17:902:8d89:: with SMTP id v9mr92430510plo.99.1560906971165; Tue, 18 Jun 2019 18:16:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560906971; cv=none; d=google.com; s=arc-20160816; b=KdfxNfvuLIB7dyVNsovG5fLZmQZj6+XHNyjNJh+IX37TEnKJbRiJh7cPBl5nt2bhpg 0zQpRm+hw3L0Yc9cS6t0SNDW5RKOESqm7fHTGYAbkytQy2rNwqB/qxtfVfyeTDhLt1L+ pETIimoHaq5N64vTW9G8ESOjvXMIhs9mY/Bocm6Z6vIfvYTxIu6UNXSz9mR7B2k78rTO VvPmg3uOthnNwhntEeT9uqmMU0Zyvq2m/ewx8Hp6Q7D1eWmEWTHVPr2jXvf034eJT2BC jfCllSwJgZFpaUM+Z2elUeSTSZKBg20ggngcJvUY6QGu8KAQxzuvGZKNvZ0XaTlT6ySr mkBw== 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:cc:to:from:date:dkim-signature; bh=Pji7lKgrO/kCVnYgvDkmXNm8qNW9reyHS5Rp4oBPXfM=; b=zr+QZIo3uZZo4fBhUZjacdhdqD24A5GSPec3e3grlkfKkOQDmBc106ADjPGuwPbq6G I9oBSQGCR9t8NtRTyvfOVvZrXbIAom3VbQH4Pt/j5253SeAWCfcaujzrUnhvuIWsJVaj tIEdH6Tr4mmj9XzERGH+ShZSEXUKjqqw1OizPeoLZnilFyA94rUwiYnL6PNo8HVAqDgX Sx/bZRn86LR++ct6JzIjr7lwpt29eJxYV3gO1stL2v5G+kyBfZ57m30ffsOwY3AD3vSv 0HlyGJexmVIJqoZkkL+t+JPP405rJ1FV2RXhafyDKgibaFrN8cPgErCJMuuYg4xa5ocL 8rmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hw+6B+Ex; 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 o68si14027131pfo.184.2019.06.18.18.15.54; Tue, 18 Jun 2019 18:16:11 -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=hw+6B+Ex; 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 S1729757AbfFSBOs (ORCPT + 99 others); Tue, 18 Jun 2019 21:14:48 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:39682 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbfFSBOs (ORCPT ); Tue, 18 Jun 2019 21:14:48 -0400 Received: by mail-pg1-f196.google.com with SMTP id 196so8644855pgc.6 for ; Tue, 18 Jun 2019 18:14:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=Pji7lKgrO/kCVnYgvDkmXNm8qNW9reyHS5Rp4oBPXfM=; b=hw+6B+Exze8ZdzgLnsyml7I9sVxD8thWvlLSiyktfXW32+8AKxutW1Y2PcCVCMW9ZJ uv9hHZYx5wztPs27FcyWjxAIVcC3L4H4l3F1lRQQq+/WYtawCgUnvnqNr0RnqpoVBDM6 9sJJDhNhgiaWyKHXf927VUeGACCpjNCMnPVwqSEjg8vcqxbD9xbd8GmGv4ulSN9mDxZO +nALWgDN9dWZytsRnGGir5AJ6YjThE1drp7BJVGFYpsERvS73hWgVhy/2RF79J5+gVIv CvQOJMeoWDqwrau4shH3Mv7ffbs5zJUrHFJtlQKy6KsKzjD4v3iVOapY3qLuVS346QkK MTSA== 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:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=Pji7lKgrO/kCVnYgvDkmXNm8qNW9reyHS5Rp4oBPXfM=; b=qZf6JPpzjH72rRJRjiVo0ki31zwY5IVKxDlDPEh4sIhUiAol2icIbxjTp+PIfLzf4z KxVyid4KgifoEIy74vCpAjwE8t2bHEoZgEwlCqaAKby3YGIHn8ytiObu1adFDZ1N4UYU K8opLS8gptgIvW5Cn70wsf2A9XGIwV2lqP46Idi/kGM3SytZyrgCH6spj0hPp7LTlPBh nURrskQq7AUE+Z79xZuQ1sTqebelBv00NfSdSN5BGs1RFs2tkIxham0TOD9jV2snVc2c ukeS3HdaNxsngujcFPhXbMaNKIhSJIQZ7KrYpNO9t0CNlKRKRcPrCelvbMWADOoPDwXX tRsA== X-Gm-Message-State: APjAAAUbJMyrXL1ew22CD2MovmaN+0XvkM9X7mTNyZuUHNuQHRBKZw4L WNG08/jJU6SidcIv/IfBbhc= X-Received: by 2002:a17:90a:9f0b:: with SMTP id n11mr8046154pjp.98.1560906887809; Tue, 18 Jun 2019 18:14:47 -0700 (PDT) Received: from t-1000 (c-98-210-58-162.hsd1.ca.comcast.net. [98.210.58.162]) by smtp.gmail.com with ESMTPSA id m11sm3147174pjv.21.2019.06.18.18.14.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jun 2019 18:14:47 -0700 (PDT) Date: Tue, 18 Jun 2019 18:14:44 -0700 From: Shobhit Kukreti To: Greg Kroah-Hartman , Bastien Nocera , Hans de Goede , Larry Finger , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: shobhitkukreti@gmail.com Subject: [PATCH] staging: rtl8723bs: hal: Remove True/False Comparisons Message-ID: <20190619011441.GA30949@t-1000> 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 Removing comparisons to True/False in if statements. Checkpatch reported: CHECK: Using comparison to true is error prone Signed-off-by: Shobhit Kukreti --- drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c b/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c index eb6e07e..8e4caee 100644 --- a/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c +++ b/drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c @@ -1421,7 +1421,7 @@ static void halbtc8723b1ant_PsTdma( if (bTurnOn) { - if (pBtLinkInfo->bSlaveRole == true) + if (pBtLinkInfo->bSlaveRole) psTdmaByte4Val = psTdmaByte4Val | 0x1; /* 0x778 = 0x1 at wifi slot (no blocking BT Low-Pri pkts) */ @@ -2337,9 +2337,9 @@ static void halbtc8723b1ant_ActionWifiConnected(PBTC_COEXIST pBtCoexist) ); } } else if ( - (pCoexSta->bPanExist == false) && - (pCoexSta->bA2dpExist == false) && - (pCoexSta->bHidExist == false) + (!pCoexSta->bPanExist) && + (!pCoexSta->bA2dpExist) && + (!pCoexSta->bHidExist) ) halbtc8723b1ant_PowerSaveState(pBtCoexist, BTC_PS_WIFI_NATIVE, 0x0, 0x0); else -- 2.7.4