Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp591894ybd; Sat, 29 Jun 2019 03:34:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRv07Tw4CEk9Qt+kmF4in0p7sRhEiHi5zBlXgrg7Bdj6A5klWHqH6AAJ7gOS+OEFAepfXz X-Received: by 2002:a17:902:7c03:: with SMTP id x3mr17243931pll.242.1561804462813; Sat, 29 Jun 2019 03:34:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561804462; cv=none; d=google.com; s=arc-20160816; b=uCcUiMseg8fOvfOrmXZTGWTfyTJrCqHNbdX24GPMZ1/1pgi5lGzJnbPJWtdKXujgsh 2i/x7XEktNN4D9vv0hcdEcRy4NJlsQpfP9Q8i4H557Ah1H/h2qQCre7K5y/X81QF/vzT /JWJDOZ4yVcPivRtmEO1esTDTN/DIQxKlaIkZvzTvqex4FhbEPYbzkRbDqL/mzsT+Jff CBIFr2HTI220NfJSrTUplmKscXiroNxOvVlwrTh28iXW/jbPZPB2X+zETKbbp/4i75tC 03nHKdVLbwylRpsv5MZK/hU7DTMSZ22rQdG3xiFs4eolLvARDS50l3/L1bExh1kC6Ga8 OauA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2oU+baNnGYXLU4uPl5XcwjOYu5QeXXsmvgarRO4YJus=; b=xf1FFkzC8WF+I+E26Lb99ajjKopXKLSyEJNiA4rH8Fkc5KFQPhj49ZVKT8zKB8mdfs FhoIwSzV2i3WkLTrKJbaCgt2uryyifViByzHISUKHD3+xswxAxyolbPRZa5ZyHK47Iwk bvJ7h/Lks0pZPe3z6JxU8lE7n7UHLxeBO3LKvnSCItxDvHjS3MNX1Y9rSFLiozMDWtE3 1y2heCEoBQM2KdWBqd6/BIFNIIl7tJg3HDFdtotEiAAqI29Guw741EqyQCG9bGjqOvm1 80YXzwTwlBKGrJqOz6IRpNMl+tRjXvt3OVGnly7DRMRcSukOSGDNrlLla49uiUoTyrEA ZMFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=lZW1QkFJ; 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=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o1si4611646pld.278.2019.06.29.03.34.06; Sat, 29 Jun 2019 03:34:22 -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=@oracle.com header.s=corp-2018-07-02 header.b=lZW1QkFJ; 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=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726941AbfF2Kck (ORCPT + 99 others); Sat, 29 Jun 2019 06:32:40 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:34996 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726894AbfF2Kck (ORCPT ); Sat, 29 Jun 2019 06:32:40 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5TASv4t078874; Sat, 29 Jun 2019 10:32:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2018-07-02; bh=2oU+baNnGYXLU4uPl5XcwjOYu5QeXXsmvgarRO4YJus=; b=lZW1QkFJN6GpNXLAAUB/sWg4pjVBfdAQ5bNF5+MI4ots4E+FR7Y+NDgtogqXEQFmEvzP gG3gkxPzht/ACgvfxfDpbfGhUid1LdGAyucfbaSh8t1qPoTywZT98zATH4bqnqz5Pyon Uc0Fy5JI9hkGq9HPigW988LJ8cjXt7bxXODtuTF22Z3xQx3ERTE2dcComsZT4aa/Njjr p9ySP6TbPuh7fVPe5hCoo0WOKXTpn8TgkAXQG0wFt/PCDRzjiuYBWEmdKJ+V6LGejJD2 bh6ewWZd7NMjuRSbV8hm14QiEbajwFZfih0Ra14TuzAqU6VJCys0/TQtz2IT3QEhZMkV 3g== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 2te61pg0mu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 29 Jun 2019 10:32:36 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5TAW0ON085529; Sat, 29 Jun 2019 10:32:35 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3030.oracle.com with ESMTP id 2tdx1a3kda-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 29 Jun 2019 10:32:35 +0000 Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x5TAWYBw028039; Sat, 29 Jun 2019 10:32:34 GMT Received: from kadam (/41.57.98.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 29 Jun 2019 03:32:33 -0700 Date: Sat, 29 Jun 2019 13:32:24 +0300 From: Dan Carpenter To: Hariprasad Kelam Cc: Greg Kroah-Hartman , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/10] staging/rtl8723bs/hal: fix comparison to true/false is error prone Message-ID: <20190629103222.GH19015@kadam> References: <20190629101909.GA14880@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190629101909.GA14880@hari-Inspiron-1545> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9302 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906290132 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9302 signatures=668688 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1906290132 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org You sent 10 patches with the same subject. Btw, I can't recall ever seeing a bug caused by a true false comparison. I agree on style principles with the checkpatch warning, but I do think it over states the risk (which is as far as I can see is zero). regards, dan carpenter