Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp588177ybd; Sat, 29 Jun 2019 03:29:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqz32L8hAZh4sxR3co+qV6ed/qLyU6SdqZy+HcS0NQ0v79HcySrBSzjB5dm0P/Ah3+jFExFj X-Received: by 2002:a17:902:2a27:: with SMTP id i36mr16713189plb.161.1561804168615; Sat, 29 Jun 2019 03:29:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561804168; cv=none; d=google.com; s=arc-20160816; b=bhlO4vkSui2dESI+eWZ2PdAHuQAXqopCmKC5SClAImiWmf/8rA5xy2JB+IGSB6Bgah 1fG+Q7JHgeXH77DIsJqLXBX6n9lQ2Q9vSC+/AgpdPAR/x+4pq4i+YACpqLmy4JR73Krg mNCUZwj0b6UTnl9/EKvxeHA0tufo1hAzh+LjmcDYIWgcp2Ip0LVCkkEEkRTBLNTgbP1J BN/yUBD5avaP32XITPHnkLS+mIjZrUNmMS3nYdnTRDxrsMARIM4POmQdwnRQQs/FeD0e pWbbvPmtZN5EUj9sc+qpZ2bUbpYKyuOiJ9skl+RhWkCfr5C0WTL+kbv7vlJ8LbRTaxjU aQ6g== 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=ufreqsCqUEbtwakQjfPG4/XQRKe+4sPPeMiA/RmTprM=; b=l8WXhAJLrEPCvLGqjGvbumpMEJOu5fueWS1fOSNcb+gQUkW3Ns8Xg90WxSZcYYDzM3 RB4RPfnd3dCpaV7/r3p1BWalo0RXZcjrez3OvL22lKvF+YTD+9TI0aguzoBSoVW5prfs hNd+g1KZSzB7rxQPPSUyfMInZb2pErUTbC98EjoV9/Or5btEIcHoiMlCUOGTcBkqfOt4 vIrW21Us++WlD7xOqs0U2K9CE8glMYgWprT9dCzlbLSwIXX9UVvN50oES1FOeMY9VXpV yoTGeU03N7IzfSqGFe7FqekNDbcYkZwnfWWcHxSeBybXuSbAj/LyV6Qm+xmW+gse5bhJ zmtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cKdmZG2f; 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.29.11; Sat, 29 Jun 2019 03:29:28 -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=cKdmZG2f; 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 S1726958AbfF2K11 (ORCPT + 99 others); Sat, 29 Jun 2019 06:27:27 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:33602 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbfF2K11 (ORCPT ); Sat, 29 Jun 2019 06:27:27 -0400 Received: by mail-pg1-f196.google.com with SMTP id m4so3728934pgk.0 for ; Sat, 29 Jun 2019 03:27:27 -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=ufreqsCqUEbtwakQjfPG4/XQRKe+4sPPeMiA/RmTprM=; b=cKdmZG2fv2FHyq/gn/WOY2fDnZNUuTcUVfnB4nLqEAMAuWtVkSOgN0EBoQFxbmI2sC kLg51yMJLQdyZoqoQJLsLVglMD8dhONK+dIblCpriafBpJAN3lDXcHADZsw6rXN1cIOV tJJi6JKUh4ybqBp8oi2KqNO4EyxOOB6aSRWsX7p9l6kqGVjz5+FjYCcUC9y0gwPM1JhE GrEISObJScRohTISa26+gFXHGtL4m8XVNm9sqtHvJH8gNU0bKCu7oomgNIeZjUDmMsjS cAHQUQMOxe4t8kJ+ZpPwTC+0hngYLr1hIlylIssQRwK7wpBMonPTgbhNija94oDUK/ST x71w== 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=ufreqsCqUEbtwakQjfPG4/XQRKe+4sPPeMiA/RmTprM=; b=AlBdaBqB6R4JnaCRIOifAG3DLyxsjTUKCiXxlB9AT6n3BsYshOeyQyi/4cbIVTKK7g clUlq3SVL+iRyK+WTvQf+dm8WFZthL6CFQT/Xob0B97ShkmYvbt4g46N4nRlcfET64w2 I0QGN7/8p100swAW5RdIqE+6XFQH0DkB+/jqE40GaFHmt5W4jMU1xylbgB5xJryOjYVQ NfUIxzn3HuVO+Qf5qELoPOGxex2zX1jCtWhhw06tO9TH7JH0vbYTyBmSMFQyJqvTBN95 +T96yOMkVhSfYj6AFbHs046xzq7tYFaMVfk7MZW2oChdx70hgOvIibAKjzv6nr7IlDtE zKqw== X-Gm-Message-State: APjAAAXmFvWnzGl+OVH7GSqCtw+YhBleynDo/AYcGtlLAnN0hG49TIRp Ii1ZQFk9+PzI+8Zd2/RjUME= X-Received: by 2002:a63:231c:: with SMTP id j28mr13633480pgj.430.1561804046903; Sat, 29 Jun 2019 03:27:26 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.187]) by smtp.gmail.com with ESMTPSA id b29sm11633100pfr.159.2019.06.29.03.27.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Jun 2019 03:27:26 -0700 (PDT) Date: Sat, 29 Jun 2019 15:57:22 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Hariprasad Kelam , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/10] staging/rtl8723bs/hal: fix comparison to true/false is error prone Message-ID: <20190629102722.GA15300@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/odm_CfoTracking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c b/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c index a733046..7883b26 100644 --- a/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c +++ b/drivers/staging/rtl8723bs/hal/odm_CfoTracking.c @@ -221,7 +221,7 @@ void ODM_CfoTracking(void *pDM_VOID) pCfoTrack->CFO_ave_pre = CFO_ave; /* 4 1.4 Dynamic Xtal threshold */ - if (pCfoTrack->bAdjust == false) { + if (!pCfoTrack->bAdjust) { if (CFO_ave > CFO_TH_XTAL_HIGH || CFO_ave < (-CFO_TH_XTAL_HIGH)) pCfoTrack->bAdjust = true; } else { -- 2.7.4