Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3345051pxj; Mon, 24 May 2021 04:44:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy48/6KORponhkESYVV83W34Te+8yjL7a1hpchdFqO+BPURc2K8sgrGJ4godUeVcurfngPF X-Received: by 2002:a05:6402:13c3:: with SMTP id a3mr25452855edx.18.1621856672840; Mon, 24 May 2021 04:44:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621856672; cv=none; d=google.com; s=arc-20160816; b=Nf2q7KxDrf4W9NkB7kN12HgU6d8hN+5inNxKzQQblAUI9ux9gxHcL24Mg2yfgvXVvU AkMgt5LExsZbBmtWlsEBr9sHVg7hVlBaS8WyNff1JYcT1brlKrBQnUTwKJfAINuQaJw8 us8NA+dBIiCQgVCVDwutF9fFb4br3kMXAdXno1ld/aR9RLqOsAFfzlyUaoAM7e3mfOJW TQgepRi7bz7FZPpNVL0GyIguUcQHHtPVQP6LL/mQyZkgWBGfOSHkTuGIAVuCYb+QtGut JuXm/ySMZQdFuQE5wakL8usaI01au5m4w0qXasHmLljzJKgfHQQx1YWY8bS33NPTZ3RR IizQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=P9kzVkpH6K+dRhisEWwKagVuKYKm8ZedPldptcbJ5EU=; b=Ix5IaJdh2YY9Qp2ipzgkSeqyEXR/edIMkS6yC9bCOViLP5245KvO+fvNitlCzKQA7T 3/rVz+HKvOrNxjogLMlXTKAu5uuiHJYqbR1WBVTsllZowwzYL9M6MPjLt/84VMyxQgtu mUAriqQXkvovkCx9GtOutVO7NpAqEVPZIhBbh3c7p9tMgUHFoaTKkb1XfreUwQBaycwC VezV84CtWPog9jd22nrcfgIF39oiQVWlZ7ebbQT3+BzqT60AEAy0HT6UPrWJduK5YT5o iXXAcIIG5Xab/kWv/z0LFzudJ1sK1TGLAHvd1jI/01yOT1atnXDa5TJn6EWQSzt0WQNT Yywg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=JMI7yDme; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n25si12711916edv.9.2021.05.24.04.44.09; Mon, 24 May 2021 04:44:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=JMI7yDme; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232742AbhEXLoe (ORCPT + 99 others); Mon, 24 May 2021 07:44:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232670AbhEXLoa (ORCPT ); Mon, 24 May 2021 07:44:30 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1DDEC061574; Mon, 24 May 2021 04:43:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=P9kzVkpH6K+dRhisEWwKagVuKYKm8ZedPldptcbJ5EU=; b=JMI7yDmehfFgOO6K1lO8bw7rxR 1jXqcIv4JSaz0HwjVnCJv1HPvIQk0NG4ks1n//hnn9dqPHeKcLSKRwxdqFQYaTCeXEKV6qjEyIx2N O8d8JkNaLZTVN5/0JthMbpwxtn7hsbsdBG4cw6IwLo49RD4kECQSZKha7QfSkRoFVQbmUvJ1+zS6B uJLYhyNlofZDbmeHpRZ+ltW/w4or3WE8vrkZaIJyJlvCpG0+cacFrDg3axMdRguJA79LGDiZV2gLB 1hAD9QbIjmBQg4q68YyXWbobccjIoEeSaoG9duiWG6+vm1BOK43J3d6nvp4Bt2ZhA/1ecm6OV2J9F TUnCCVFg==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1ll8yr-002K2i-AJ; Mon, 24 May 2021 11:42:49 +0000 Date: Mon, 24 May 2021 12:42:45 +0100 From: Christoph Hellwig To: Yue Hu Cc: ulf.hansson@linaro.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, huyue2@yulong.com, zbestahu@163.com Subject: Re: [PATCH] mmc: core: Use ternery for return value in mmc_vdd_to_ocrbitnum() Message-ID: References: <20210520082837.2129-1-zbestahu@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210520082837.2129-1-zbestahu@gmail.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 20, 2021 at 04:28:37PM +0800, Yue Hu wrote: > From: Yue Hu > > Just simplify the code. The original version is way easier to read.