Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp584492ybd; Sat, 29 Jun 2019 03:23:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvodSr75h1HN9iT0XbFCHbdc+k7M2lPoL3pF+0B57AoAKzx/Ku53k6KNIi2FtdTNTqcypb X-Received: by 2002:a63:c60b:: with SMTP id w11mr13443144pgg.356.1561803825215; Sat, 29 Jun 2019 03:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561803825; cv=none; d=google.com; s=arc-20160816; b=ZAPg39PTZF8d12n83XxaxnHZl0FVAjXZeYK2N5bKmOUWMqrYfdTJS/oo6xCDV8YKxi nmdu8ZuZBUbEGXxLe41we3FkWNEg6KfFjZu5daWOF8ckxm4DmmG3y3B9McsqE+7n/ZJi za3a4QZ1FZcc5ZbutWl45tP0SWylS3hACM5KYEQH9U/4kcznIaOrg5uIRz6NjaVFBFVS NLQlP4vZClEK1C6EWwtTRBtM9E51ilWKSPlU/j9dsJU/GcXxdCQf6g8W9h7buCA1ldCY pZJV7VitQtTGjQG8OZESbBtPt0D+92TlqXong1c9ncGpQHoVgh3yI/Pjl6rfNx3UrqaT rqsA== 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=mk94RXz9RbYmNlsAwePZkKE+FVfS/zkDopugHxCtBXc=; b=dwZbO6/3LBcddwlGW1sPE5+D/6h/YaDIcmfLtYUICFP/jErRCQj8UbtJD+/GxZHpRV 9gsKshGbjMSAHzxXq6cpCzdmbG/nLmlL5mIXPmMF1xQYANv74oazlPQKyKhXkpGfntjb dgbPe5Ve+x0oQ850tuj5t6e+ydDRcddb4MOLNFIMPxMOV+GC05XSdxKlJrZYy/AOoLaJ R1r4tT4E3RyRXw3iH7cWm7yNcJtnaRF0bMcWr8stCXombliEJZYb0VeuEyk/kz4E4Hxm zueQk9N70DDkRoIg8e6d90plCT3gnPj47dewupXBvvlGNXwfA5m/jTVsCTUfHj4klLsV gsIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=JNJMQ8eC; 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 m20si4629133pjn.9.2019.06.29.03.23.29; Sat, 29 Jun 2019 03:23:45 -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=JNJMQ8eC; 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 S1726993AbfF2KWw (ORCPT + 99 others); Sat, 29 Jun 2019 06:22:52 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:45823 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbfF2KWv (ORCPT ); Sat, 29 Jun 2019 06:22:51 -0400 Received: by mail-pg1-f193.google.com with SMTP id z19so3709237pgl.12 for ; Sat, 29 Jun 2019 03:22:51 -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=mk94RXz9RbYmNlsAwePZkKE+FVfS/zkDopugHxCtBXc=; b=JNJMQ8eCufU2eLT/mkS3juwj8990gOhfuYb7cNLs8ZykSRwiYQPiY0LHx7vJoK4Tba GMxIEMDN1f5SIWqGhy35JSQHVy0DISAeFsTWII54AvRZOpttM0wJudF51tvozSImnmSO GdWX33zavKjkB7IgT4QKYONDFfeXOvau4AhPEDgODF+II+pq4xpc5YLXjC9tFOYTCkYp SobHX1eLaA/rs6rdYHDi8zik5Da66faE2ssmAkI1WTedL/DHIIAKoEi+Bp223hzXDdQd LqGJ98RPBrIglKLq7uYwE18+VhXtM12d8Khd1TAS1qiU1fCNbRGVBwmIXytnKo52Q1j5 LrTg== 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=mk94RXz9RbYmNlsAwePZkKE+FVfS/zkDopugHxCtBXc=; b=iigZSf0/zUDhG/zc7fz5Azgu8BJ1A5T87KXkYkd9miKgS6N/+P/5yEpk2PTHVcCqKs Zih44Xa2qzelmC1wubXLL0JrEP+cessUpmTAAVo9obVHM6cYOyXovSRzqsWFsR7zrOs3 yJmrz+QS2rpL/NExe+48EIGEMvojCXZ8LB3H+nS2Jk+HMgI0LT81ufH/oNXX6QAS3EBp ijqKoX8+AoM3p/Slc8h+9cP9KzkkKT+suVFWciC2q+DHn2cp/A3dQQ+J0Q4lmydhrPxf GnrqF9ZmEGD8Tp8rUEplHokgDLezf9WFloh9XqYg+TVY9v00m+5T67s2WWF94w+Gq/69 W8Wg== X-Gm-Message-State: APjAAAXva9j+NHqtEPkLluhd+4oOWxRmRzGmMPx3gcEmfmKVvVoK5xJr 8z2w4OoUV2cX+jMa2BqPyAI= X-Received: by 2002:a63:7f07:: with SMTP id a7mr13589957pgd.26.1561803771236; Sat, 29 Jun 2019 03:22:51 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.187]) by smtp.gmail.com with ESMTPSA id f7sm4778667pfd.43.2019.06.29.03.22.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Jun 2019 03:22:50 -0700 (PDT) Date: Sat, 29 Jun 2019 15:52:46 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Colin Ian King , Beatriz Martins de Carvalho , Gabriela Bittencourt , Himadri Pandya , Hariprasad Kelam , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 04/10] staging/rtl8723bs/hal: fix comparison to true/false is error prone Message-ID: <20190629102246.GA15070@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/hal_com_phycfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c b/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c index 3367644..aabcb32 100644 --- a/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c +++ b/drivers/staging/rtl8723bs/hal/hal_com_phycfg.c @@ -1191,7 +1191,7 @@ s8 PHY_GetTxPowerTrackingOffset(struct adapter *padapter, u8 RFPath, u8 Rate) PDM_ODM_T pDM_Odm = &pHalData->odmpriv; s8 offset = 0; - if (pDM_Odm->RFCalibrateInfo.TxPowerTrackControl == false) + if (!pDM_Odm->RFCalibrateInfo.TxPowerTrackControl) return offset; if ((Rate == MGN_1M) || (Rate == MGN_2M) || (Rate == MGN_5_5M) || (Rate == MGN_11M)) { -- 2.7.4