Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp594270ybd; Sat, 29 Jun 2019 03:37:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8W/+ucEdl8vdlrPtTqZLziGgBe7VIVdL+FxvwqlcZ26gO2eGHGlEagdBGSsBsMp19tGb8 X-Received: by 2002:a63:2ad5:: with SMTP id q204mr14071152pgq.140.1561804675004; Sat, 29 Jun 2019 03:37:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561804674; cv=none; d=google.com; s=arc-20160816; b=RWGt0bR3BWdi0ijM+np2SbtAGvOUnpsjLz15raURnxy5yY1fSOgWhfJdYXoVI3KJth FbvNalqDn0FvENSX5IcyTkcsnWaqG3a6X+tLw4garuXz3KosksD5hK6E/FaVwofBMC0O TYBkrNrVG2/1hch9HFQXHls2WkAKRLmu+8T7l7jEr2pyJSMXeujb+exsGt629JPXfCU1 h1dd3ciV2NrVGTrXIhnMB9WixmXyzrOVsPLfYCLepgoF9o8ft651ujJd8XGMwROCuLEH 7pCcU7sF6QGbDjYacdlK6A0ZHvVdj9krtEZVCRtOK1RnB5O91UEUZqE40iGMwNApnNgW EaNA== 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=9mH2XccuZeODfxZbBcYEVAm/fyB1IljuBm5N/klAdV0=; b=VD3OXplqHimQSDLSztl9NdYVhDueuFy1CsGj/4KBJTcT2Wdt8vYwM3yWoavSp/52Op pqDWaB1pA+RaU8+7Sg07hMQItZDXGVTQDj437vdyhjn5Py5dthZ5EuKU1DWh7R/d/m2r ydNk2OOrboHstECbEwvwr9+fXEyShAETPFN2WNReQoJN8t/LIvGV4OG9Yuw9Ukwa02KB Agn62fUhJaFL3o3C9QVRAHbEP6Hc/27eWIt9n6HYsHwwuaQKY8KY3Ca6T9ypvHIEdZhB 2CYNoJhj19na2nQtsI4TlaBLVxgV/RQNsZcs8qzD5Yapz6kdDJP9/eJsJqyHWUkxC7Oy ld7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vZQWoed5; 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 f10si4680923pjw.89.2019.06.29.03.37.39; Sat, 29 Jun 2019 03:37:54 -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=vZQWoed5; 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 S1727066AbfF2KhA (ORCPT + 99 others); Sat, 29 Jun 2019 06:37:00 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:37602 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbfF2KhA (ORCPT ); Sat, 29 Jun 2019 06:37:00 -0400 Received: by mail-pg1-f193.google.com with SMTP id g15so1829014pgi.4 for ; Sat, 29 Jun 2019 03:36:59 -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=9mH2XccuZeODfxZbBcYEVAm/fyB1IljuBm5N/klAdV0=; b=vZQWoed5/6nx3bfawcj951wiGTtCCPQtMTXJMr6fDiwrBnAWwz6KKXR/9l4nkzd70Z VA6Bjw0K9xF87awHmDkarSSkRLSKLu5snbe4CdFZg+fI5kU9fIoDUtsC2XJrXR2ooONa UDuFnLjLEmraTlueTcZPECMeY4rx6dfdOkDqIsqrcK3VTaPMxxzvAupGNlLYhNS9FWJm A2RHauruG9OVU49OzYa3F9HsiSHp3h+TOPF0RAmgmLxELvokE5jGKhL8Rx4QcrrZhcGr n1Hjgz5d/dd9tGS56PM8W3osOFT+e/6i17Pe9kz09J7O9+H/c8m/HNErKVMNuVqMtpV1 Xn8Q== 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=9mH2XccuZeODfxZbBcYEVAm/fyB1IljuBm5N/klAdV0=; b=CpPFkGF9aprVLEG6tUdt3uDGjnFwYaLgW2zVxWtA8hPkXtDR7VPGDXst0/Kmc6s/0u QKiWp/Aq3OwR2c15kpedFquQfJMtUNmNLiLihYuIywrbHPULNXJfAcP57b3zRFHXW/MU srtZ2VIFk4D7c7MIyTRnp8BceP3nlN0TDjNuWFe0W2hd6zSOE+lR25bcuvVi1uy7Drpf fw84NbLVEz4dBFsdS9rJxo23r1er3q+Qomj7HXDiqNkEMON32d56VtdBFpkxuVa7Qj+W WjENeyMsQM7n44v8q4RFMInyhF6qG6XKRiNe0X6Ec7y3l6tNxVc/sfLCQdVqPgE3PFDw hU3A== X-Gm-Message-State: APjAAAXAjYfyEkjJF6eu+ohRfTfb2UK9hkarvOu1ksVBrluo+OUkdDVj wckCYc6hnX87Lze4fA9aWhNNiO82 X-Received: by 2002:a63:4006:: with SMTP id n6mr13228072pga.403.1561804619567; Sat, 29 Jun 2019 03:36:59 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.187]) by smtp.gmail.com with ESMTPSA id k3sm4566600pgo.81.2019.06.29.03.36.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Jun 2019 03:36:59 -0700 (PDT) Date: Sat, 29 Jun 2019 16:06:54 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Payal Kshirsagar , Hariprasad Kelam , Himadri Pandya , Puranjay Mohan , Colin Ian King , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/10] staging/rtl8723bs/hal: fix comparison to true/false is error prone Message-ID: <20190629103654.GA15592@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.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/hal/hal_com.c b/drivers/staging/rtl8723bs/hal/hal_com.c index 2763479..d3025ca 100644 --- a/drivers/staging/rtl8723bs/hal/hal_com.c +++ b/drivers/staging/rtl8723bs/hal/hal_com.c @@ -140,7 +140,7 @@ u8 hal_com_config_channel_plan( } if ( - (false == pHalData->bDisableSWChannelPlan) && + (!pHalData->bDisableSWChannelPlan) && rtw_is_channel_plan_valid(sw_channel_plan) ) chnlPlan = sw_channel_plan; -- 2.7.4