Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1083445ybi; Sat, 15 Jun 2019 19:56:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwKBeSi4GEbORmzFXDTXo5BA3SHwUZ5LuOv/UA01ILU/NPG9e5EhwuJ1VB80KApxavgcp9W X-Received: by 2002:a17:90a:be0d:: with SMTP id a13mr12057890pjs.84.1560653802272; Sat, 15 Jun 2019 19:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560653802; cv=none; d=google.com; s=arc-20160816; b=IOKbUnw/5rGNxOzq0/4/zLll8ru7/ef9MLZOb97JYynmTLdnAKBW2YbfAO9QiRblYw ED1Y8yfl4NbAv9+RIMIV776+ZiFrr8xpfGBUlZKzw2QSxgDJHbcbbwjIEF5agG8bPQe6 8m1QiuJd2P0qM/pUGgUzWxc5OOjTod4Zba2fA/SwmYt5V6CyP3R6X0BYWOHe7tHIqAKn 4SFdd78AI1vTVJpHE2Eu/yCDBsVPdaVjnB0+HM8AMPY3fNCOIL7DXC41+AL4nnRJn/nq PTlCXEr2BF9qYQBLoJFJSdXKM/tq9zZnsPPKzmUaIA7sK20gm4tMZgnz0CHBA/1g6A5D v9vA== 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=AJZkUctyy1iP4lj+ZenQcgI+EZnxpcZPG/pF3IUKv5E=; b=hmawkthRuhtGxPxAQ22M+LWFLJggwMJV6ccv1mnefGGe16JZmi8KEJdWyLr8lWUcb9 AgDWRX5DvJMos27j8zUV2ewGgLWlrPc2RKoDBn548CWrbm6oOHTDSDLYL86ttKPynH0b MBwrHrbqmR/3ce0gloRLwmRlHSNpyZq3mJTgquk1rleWxTXfOBxQPPofJlsxO6OtwprF 6rTrjmX5qubLsDzld80DyKd7bbtuymE3bBoTosrwLnffASIIbYrBwdTWYE9zAk7Feswc EaLHveLx2mrv96WxVXLy0PXAisj4iQ+qStauJPVFxwDHrQim+cfc/9Jakuil40bdvMn5 EC6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=l4ftvjkp; 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 i95si6106039plb.106.2019.06.15.19.56.27; Sat, 15 Jun 2019 19:56:42 -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=l4ftvjkp; 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 S1727132AbfFPCyg (ORCPT + 99 others); Sat, 15 Jun 2019 22:54:36 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:35720 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725807AbfFPCyg (ORCPT ); Sat, 15 Jun 2019 22:54:36 -0400 Received: by mail-pf1-f196.google.com with SMTP id d126so3744084pfd.2 for ; Sat, 15 Jun 2019 19:54:36 -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=AJZkUctyy1iP4lj+ZenQcgI+EZnxpcZPG/pF3IUKv5E=; b=l4ftvjkpJgj5rZAm91YeYiwItgta1YkWhD5Hhj3IUGTVf2hQU0rT+3AMcPNxEPPXzb /VA8+jWu+M3wP8+GjEFqA/8NixPqi4WeiNCkFM8FJy9uC9PesmHU63INRMN8GuqsY1UJ V6G7ubHaKZlnKWggYFU1m4zaVVo08ZbPKsOQVLn2eS90NV8kDzCdR+BSu4l8+pxk63Db q6eVvGabGFAcGMe4NycT8G/1zUuhW34jNhW0KIr3wVIXkM4JseY2ikEQDtgN4NQWveuc lHweGxFRp0WwrNyGYNRvdbiuLTwDOGfVHcNmYvQ4EDxOp+ByhHLhf+NZAaZsqzzAoW8P Ox3A== 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=AJZkUctyy1iP4lj+ZenQcgI+EZnxpcZPG/pF3IUKv5E=; b=g+26YVPfKQHjH473qd9dolYiYFnakBo3HLLy3D5UR1PjwOD7XCGOhOzTO3YksaxLsk qyA6DT4u3S74WGBqajsuThMArLYPsnR0qIvF6iJ8GPsWL+UnatY8ixzh/tB4y1+/Ifs9 2+lYZew69iYjy6Eh9h3WJZEqIogKrghsMF5ULStVRsGsME1T+XXB+RvRvQUKUQbk/Hne L3d/m+9ZOLXoNzfiLGIh35wtbNrm3VTiyiPQk9nMwLIglrBBodgkgAu7nwwaYMBaOkn/ CvkjUfjJmLgI/jsKTbOY0kM0H6AlgOQaaUM5qXj8NWgH8EtFIBJMVVm6UWGgmQG1Wpjj mE5w== X-Gm-Message-State: APjAAAU34zHT2up5ytBbMPyUYvxAtvdhqzaYNNFyd5vSwDKJ70wgANwR tP0Ql4qvMGtpYp7Kkeg5AXE= X-Received: by 2002:a65:510c:: with SMTP id f12mr41514186pgq.92.1560653675662; Sat, 15 Jun 2019 19:54:35 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.89.153]) by smtp.gmail.com with ESMTPSA id p15sm6647513pgj.61.2019.06.15.19.54.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Jun 2019 19:54:35 -0700 (PDT) Date: Sun, 16 Jun 2019 08:24:31 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Hariprasad Kelam , Josenivaldo Benito Jr , Larry Finger , Himadri Pandya , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [Patch v2 2/2] staging: rtl8723bs: hal: fix Using comparison to false is error prone Message-ID: <20190616025430.GA12034@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 issue reported by checkpatch CHECK: Using comparison to false is error prone Signed-off-by: Hariprasad Kelam --- changes in v2: break the patch for specific change ---- --- drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c b/drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c index 07bee19..e23b39a 100644 --- a/drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c +++ b/drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c @@ -175,7 +175,7 @@ static void rtl8723bs_c2h_packet_handler(struct adapter *padapter, res = rtw_c2h_packet_wk_cmd(padapter, tmp, length); - if (res == false) + if (!res) kfree(tmp); /* DBG_871X("-%s res(%d)\n", __func__, res); */ -- 2.7.4