Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2267955ybi; Mon, 17 Jun 2019 01:42:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyi+JYDTAI+C3jX0/f9ws5rZuBu7NNHNSSPhMoZMuPgQC8dSQeZsDwFwvfH78omOetl3IRS X-Received: by 2002:a62:2c8e:: with SMTP id s136mr68651924pfs.3.1560760936590; Mon, 17 Jun 2019 01:42:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560760936; cv=none; d=google.com; s=arc-20160816; b=i4o2ccbK1qLM0oq1se4kmd95qn4TmZCuZhRrObp5Xl3FqklZ0rLOeEDDE4Qtgn2E+2 Q0r5Y7aks2eQ8g7EcqogHwg4V5yHgxIYOuZUvDrv1wJWGu+coWIOxeKNwbJ3qDZK5Yd7 8Nj8JWbpjQqLe2lyMqicnEIOQ5hfSRPolH7ARGHgl87axQLmYwIwnyH9d3dddN1hAjtl SIAKoZ2eVFxJkBMuxhHs/j9up7nmOPB+d4k+VSr24uSl5Me9I48p95gm+hqCdyPak8sk nviS1DOoWBah8ESEr4dLgZUCNzvfQjoxnxiq+8TDzMa/xUOl1OLaHACSuVv0/5fXLAhQ GD0Q== 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=mtHQgsyMZPGWe/GtLM4GBjN4evtvLlkaFbbD9s9dYHc=; b=hMMY3ywJySEeDTZrmKVv5MPKLwt6V/MbmT8PNRKCt0S9pXreIXCIc0mtZoqABoHyvF Vo1Rq2pZKr37/DTbJIdNFtDS7MjqXnWCqoTfhMA5sRvxfOcRjUCusuKlYfnQhWoWsj41 1KcyQuh4IL/6nEH2sAQ8ukB+Ki9ZG/RrtLjZzi5K5Or7RZq+xv662CSvFUNoQmcO6IfY bfZ1nV8TZWtTb0fTxWXhC+nMkEmUNWhgw+rnXmQJBpVzJmAPQvpbQonYHkgoA3ywwsDo 6RZm8a1gQEArj2i4UZ3WAy4aWcxbkldJY4ORyUV6un6+ItwDzW3RH2vJJ7NyllcyYjUi P5OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=tpPU+h5+; 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 j3si9214899plk.79.2019.06.17.01.42.01; Mon, 17 Jun 2019 01:42:16 -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=tpPU+h5+; 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 S1727811AbfFQIl3 (ORCPT + 99 others); Mon, 17 Jun 2019 04:41:29 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:33508 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbfFQIl3 (ORCPT ); Mon, 17 Jun 2019 04:41:29 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5H8dG9s171166; Mon, 17 Jun 2019 08:40:51 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=mtHQgsyMZPGWe/GtLM4GBjN4evtvLlkaFbbD9s9dYHc=; b=tpPU+h5+tChKaBLVITUdWhziFfm/aZCQvxbIk6T1ZoreFkfteknyoZphPXRVsOWSnRHc yT7fkuV2H3JGDzfx5Wqoe9CltzTt/8BQ4SS6AdavygyUnCqBmdP1RXDJmp4hTCqf2Oel e0axr6p5JsEg88NvqWwaoMjsxJ+AkvlKry8VJTLEKSFXGHCAzv4CMuoO/GrIYyFd4BZM Drj17BYZIYYQpWvQPAF++51ZTIJv3wb4wFpiCduHYxAICMGKR2/piciLbJJHJcqCdh3N D6zpLun1X48U29YHR/7grjby/ZE6mfOMgjxlk4kgLP2hlk6j9gXieYTJaAftOrnGPnW3 OQ== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 2t4rmnw486-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 17 Jun 2019 08:40:50 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x5H8eN7o165168; Mon, 17 Jun 2019 08:40:50 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3020.oracle.com with ESMTP id 2t5mgb7wt2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 17 Jun 2019 08:40:50 +0000 Received: from abhmp0018.oracle.com (abhmp0018.oracle.com [141.146.116.24]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x5H8ehRn003768; Mon, 17 Jun 2019 08:40:43 GMT Received: from kadam (/41.57.98.10) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 17 Jun 2019 01:40:43 -0700 Date: Mon, 17 Jun 2019 11:40:34 +0300 From: Dan Carpenter To: Jonathan Cameron Cc: Melissa Wen , devel@driverdev.osuosl.org, Lars-Peter Clausen , Stefan Popa , Michael Hennerich , linux-iio@vger.kernel.org, Greg Kroah-Hartman , Barry Song <21cnbao@gmail.com>, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com, Peter Meerwald-Stadler , Hartmut Knaack Subject: Re: [PATCH] staging: iio: ad7150: use ternary operating to ensure 0/1 value Message-ID: <20190617084033.GG28859@kadam> References: <20190614165059.7bifufvhxofy6ybu@smtp.gmail.com> <20190616111516.1af0d41b@archlinux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190616111516.1af0d41b@archlinux> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9290 signatures=668687 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-1906170081 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9290 signatures=668687 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 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-1906170082 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jun 16, 2019 at 11:15:16AM +0100, Jonathan Cameron wrote: > On Fri, 14 Jun 2019 13:50:59 -0300 > Melissa Wen wrote: > > > Remove idiom and use ternary operator for consistently trigger 0/1 value > > on variable declaration. > > > > Signed-off-by: Melissa Wen > Hi Melissa, > > In general I would consider this unnecessary churn as, whilst > it's no longer a favoured idiom, it is extremely common in the > kernel. It's still my favourite... Why wouldn't people like it? It feels like last week I just saw someone send a bunch of: - foo = (bar == baz) ? 1 : 0; + foo = (bar == baz); patches and I thought it was an improvement at the time... regards, dan carpenter