Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4634461rwl; Mon, 3 Apr 2023 07:39:44 -0700 (PDT) X-Google-Smtp-Source: AKy350ahyw5JKyDJBswyqp0q0KC7ESezCgnl6m+hqb3hS04MdJUCiB+ZTFkhGKvfT4O9P2PWryan X-Received: by 2002:a17:906:da85:b0:947:5bd8:9523 with SMTP id xh5-20020a170906da8500b009475bd89523mr19588745ejb.31.1680532784100; Mon, 03 Apr 2023 07:39:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680532784; cv=none; d=google.com; s=arc-20160816; b=zqtv5FrsNhTb+ovd5H76Gg2VxsfrrWc3tA4+El7z6kJlhHV5PdH3/yoYnnhsNGTDVk JFieRAhJ3r8oFKRl4RmiXPPGg9uC77BdhH12w7YVuvtumYM0wAxSN6xkmUUM3QHJD7bm +UOcBz4CFSsk2LAVQSREwapVQ00hn3bug+0uXWpb+Tx9KwtsDll3sdKgYm6RU/EroEn/ SypfLwC2qllwlA/perJbwdZmzhf6cL6lLZ2WN+JyqRJO+Hmiq12wEtxIlUu2G33IvJhc VFutD1HmL157QZVAjwJkNzeTKs/hQwDkkE80Vf5vcxm6be19bDrF5FOeMSzMAWaiJAFf v4lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IyKOUnifa/Kg22j76h04QR7te4Idgi07oXm9sbFwHTc=; b=UJ29HVmz9CLFLwpSXqW9WSC9rNLb8QKyJKlfRJiN9LbcRQtwfR0ZbH42Ycpx21ZcOI UasHmzoZGmNHlcacKfiCBJdLcvYeTz/J3G1n1EtZ5xagaEh5LMoUMe1x61FUsuEQquph pMfKONEsYQjeRghMD/7fzPezt3zBZbModznenRSLB5AOJAABsV3rBAu78sPzLR9+8PwJ p8uDmrjZlo6G6KuF5aSf8MFNjiY9ADU81UakjWtZE9WWPG9/WIHn/zOXPTtWJNOcKSmt A/VVOc3ElMUwV0q2JTYV9VsU4v/UJbcGif2iyjzn8t//iEeIrOw7J5I/jXy0qLpaYXRx o5wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KGk98ifS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o2-20020aa7d3c2000000b004e1db2eb805si6927509edr.494.2023.04.03.07.39.06; Mon, 03 Apr 2023 07:39:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=KGk98ifS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233727AbjDCOit (ORCPT + 99 others); Mon, 3 Apr 2023 10:38:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233657AbjDCOir (ORCPT ); Mon, 3 Apr 2023 10:38:47 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 460FD6A5E for ; Mon, 3 Apr 2023 07:38:46 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id y35so17616082pgl.4 for ; Mon, 03 Apr 2023 07:38:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680532726; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=IyKOUnifa/Kg22j76h04QR7te4Idgi07oXm9sbFwHTc=; b=KGk98ifSovqY1DZzni9nQX86O6dvZhMCGhFiyEk+E6VaCSoZjcC7+TyemNrWo3Mhd2 LrzuJtwdh4L5mQcUPTRHiALC6UcPjGrajEecpM1JVZUPf2RLdsbJTgE7AHr2nIvNfmUW VOBG2BkED3Wll2t9g35yGdI5+5DVUFrdX4LGDzYCf7yjvLveGeFqmhAncz2y2nEr7Tgw E249YmpDfnol03jHXu/itbnglHaUQjbMepDHAs+2SubyoPmsiF5gFwW5H9Y1+w+rAhs8 uu0Bcgv+KouDZJ1ybtOPl7mWin3BXTyDXQCklBxqcZKM6zK+IiJuNhI+xcwjGGGhHa7Y yEmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680532726; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IyKOUnifa/Kg22j76h04QR7te4Idgi07oXm9sbFwHTc=; b=mZCi1nwQiPjDFz8K0ZwLRLqVdjhaWfTZbaru5UxVJOSAYMLRa+fM83gin5b9Gifcm6 vpHWWhE46cd2Od1BW4yJIAOubtgtH31wsMYabD7uOuvRsMe2AKO5iBqMYZjf+76fprIK 394w/aWi53o/5zjTmIrYddNkpdsDWCl8E7XYDupo4n1S4ouW7s+wywa86FsFQRcJFBn8 c+4SeCyp0Cl/rbOojts0OWGU5LtFTdbeD/CoRWmuiQtwfWja5JM4nddaHy/6PDM1hUBg 9O05DmoyH3iglTZ1lK6jH5v0UK8To3eFkRcNya9+xvLQjGMgJKd12sNllwfnT9OAXzxb 7OOQ== X-Gm-Message-State: AAQBX9dz4RabfKD4wWnkC1/dvXz74LlcekJjrB7BkVZxX0pm1a8qWriE kqd3yJTZHW6p4ABTkHp7mWRhJCd3v1Hpow== X-Received: by 2002:a62:63c2:0:b0:62d:8376:3712 with SMTP id x185-20020a6263c2000000b0062d83763712mr23958519pfb.28.1680532725560; Mon, 03 Apr 2023 07:38:45 -0700 (PDT) Received: from [172.30.1.1] ([14.32.163.5]) by smtp.gmail.com with ESMTPSA id e24-20020a62ee18000000b0062dcaa50a9asm7033339pfi.58.2023.04.03.07.38.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Apr 2023 07:38:45 -0700 (PDT) Message-ID: <6bb15158-829e-f032-dc10-110e831da8c3@gmail.com> Date: Mon, 3 Apr 2023 23:38:41 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v1 14/14] extcon: Use positive conditional in ternary operator Content-Language: en-US To: Andy Shevchenko , Bumwoo Lee , linux-kernel@vger.kernel.org Cc: MyungJoo Ham , Chanwoo Choi References: <20230322144005.40368-1-andriy.shevchenko@linux.intel.com> <20230322144005.40368-15-andriy.shevchenko@linux.intel.com> From: Chanwoo Choi In-Reply-To: <20230322144005.40368-15-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23. 3. 22. 23:40, Andy Shevchenko wrote: > It's easier to parse by a human being the positive conditional. > > Signed-off-by: Andy Shevchenko > --- > drivers/extcon/extcon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c > index edfa0450e605..3e8522d522b4 100644 > --- a/drivers/extcon/extcon.c > +++ b/drivers/extcon/extcon.c > @@ -1466,7 +1466,7 @@ EXPORT_SYMBOL_GPL(extcon_get_edev_by_phandle); > */ > const char *extcon_get_edev_name(struct extcon_dev *edev) > { > - return !edev ? NULL : edev->name; > + return edev ? edev->name : NULL; > } > EXPORT_SYMBOL_GPL(extcon_get_edev_name); > It is not fix-up patch and I'm not sure that it is beneficial patch. I will not apply it. -- Best Regards, Samsung Electronics Chanwoo Choi