Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4697762rwl; Mon, 3 Apr 2023 08:25:49 -0700 (PDT) X-Google-Smtp-Source: AKy350YpuIyHispVuLZFkXTvK4ibSSFE+snIrPCWmAkSX+OQOsZyUxA7dLlcxaPeMQG+ZyPe25wB X-Received: by 2002:a17:902:e881:b0:1a0:75fe:cd66 with SMTP id w1-20020a170902e88100b001a075fecd66mr43887259plg.50.1680535549062; Mon, 03 Apr 2023 08:25:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680535549; cv=none; d=google.com; s=arc-20160816; b=ufVwV3Ltcg412sUJizT3vAKFiWC+eW3+S9VH1IGEU2qhFGeTFV37Y5GBw67AYSiNjJ JVwDplh51CHM1GHBB3w4ajsrnMPThFVpnC81gj+UH50nNS1ApjlE3l81Q+7k44xZ/3l4 aRSF8Z3/Ob1i2F/Ms42j/nin8pCrB4xUq9vD/EAilYIkx2C1gTz7UjZPF/dnX4z+ALFC 8i42Q5GjmaH/7FSOxyGRMPviT1B4Wj+ipNh4UJ8j6xJZdWlaaU8Aol24KEOYNM9Uh5oE 2Byr/gqQFNhPvIlLldTX4Ugls9Di1pCQKrXbl2Ul9SUZ+P9mcXvx7ZMR3XI8ICF5LM+U s4mw== 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=2z5860QTlM9JkUlVzDVObEYBXhTDENhgCL0bmdrvI5E=; b=a3BhMUSyd4+B8wpUVV1sCbeLPx4Sfzmt2VMAbqOxM0BbdRfxI0tx8Ew/vcippZuGg/ 0XX/mW6QUrP8qzemiwFKWiy3T9Ns928e//KCXheD7lGUzvgVX988BK/HzBOeaW0VyA7i qUHDbCghppiB0KTlTXY1kfgfUgiR6vrWsVLqT2RYhaESY0xoy0er2L9Bkr3uOAAn5kDj IXSzi4HvUu4byaIVcDgE3l766BEB062ZPGze+9dwHo1GDa8Daar6xbsOuGVa+T7dYskV wDm9i2wbHqwSEpFJrQ/LccQhyB63b98CSTSBGXZEXcxZTFMeZshKTRYoub0mw/hjsLhD GYfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=GDt0g2EU; 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 d23-20020a631d57000000b0050f692470fasi8218195pgm.301.2023.04.03.08.25.37; Mon, 03 Apr 2023 08:25:49 -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=GDt0g2EU; 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 S232955AbjDCO7f (ORCPT + 99 others); Mon, 3 Apr 2023 10:59:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34004 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232681AbjDCO7e (ORCPT ); Mon, 3 Apr 2023 10:59:34 -0400 Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5F7F6A77 for ; Mon, 3 Apr 2023 07:59:33 -0700 (PDT) Received: by mail-pj1-x1031.google.com with SMTP id o6-20020a17090a9f8600b0023f32869993so32826490pjp.1 for ; Mon, 03 Apr 2023 07:59:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680533973; 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=2z5860QTlM9JkUlVzDVObEYBXhTDENhgCL0bmdrvI5E=; b=GDt0g2EU03RU31NAL3miPzuCjKM+bLRF/u1jNBfghUs00vMqwGRmm1cBbq1FS6Zed8 w6XpqVZHMVuKjwHU8MXk4iuI7L6DPqI93OnoT5CK34QkF1lTo/OgQesifMsurxp92mHz xbrLYS1HvAfcf9QTnUOVRCh+u9ciYrk+QwmffkRZp7k2jmWdQecP08R9ySKWxEGwtcxE 37nAUixgEG10JlF+vx7dJgr3a6KaWtvRr321uMM3EeCmfnN2tmnVMw+yt2l0EQAqvqiT pV6He55vecMwzeenpEneOObQcc7Y4Fv9GD9MuVITqKJFqAV7qS/2EqOi5z6K28YxgMYe AREA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680533973; 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=2z5860QTlM9JkUlVzDVObEYBXhTDENhgCL0bmdrvI5E=; b=FbaH7NhBzfW1JhU5ZXLIu4A2LNn+cGr86P5yvJrppdy7gKZsw2Y/5vgTZmMNeDKPYl TJm/rfVyKud2nCP9vkOIhseojEuOKzMTpnig4Xqt/wWxq+kdvQRaHZdD9mGNaVpksDyU Vq/NPlG0kRGIgudyNW2W/89279ZPW6NavmvWj3ZWRG97XpXyZfITsVSBGK8BGmnPMGHK xduG4obOtZT0Y7RyuH6z/WjrkFVeFjiRhJS8PcfG/Ik49tFUxtWr3gIDYSZH4zT+MsQf bAEdABTfUs5wsKaAA/hDUhtGzPxdimlRHix8B16mXUAnU+2IHQCGB6nVcn3Qx16lT3Et MMjQ== X-Gm-Message-State: AAQBX9dHjZN8ZY/juaxHoccV28RCUeGWp/vlGbiGPAwO0Z1a34LZatuE W7QjMdoa5dez35zMMT3OT+qPqg1hKffzXw== X-Received: by 2002:a17:90b:314c:b0:23d:42d4:b9f5 with SMTP id ip12-20020a17090b314c00b0023d42d4b9f5mr43198123pjb.37.1680533972991; Mon, 03 Apr 2023 07:59:32 -0700 (PDT) Received: from [172.30.1.1] ([14.32.163.5]) by smtp.gmail.com with ESMTPSA id kq3-20020a17090aed0300b00233b18e6fb3sm6270500pjb.1.2023.04.03.07.59.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Apr 2023 07:59:32 -0700 (PDT) Message-ID: <789f5aaa-77fa-d656-95d2-ec75857fa266@gmail.com> Date: Mon, 3 Apr 2023 23:59:29 +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 11/14] extcon: Remove dup device name in the message and unneeded error check 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-12-andriy.shevchenko@linux.intel.com> From: Chanwoo Choi In-Reply-To: <20230322144005.40368-12-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: > The device name is already printed with dev_err(), no need to repeat. > The device pointer itself is not supposed to be an error point, drop > that check. > > Signed-off-by: Andy Shevchenko > --- > drivers/extcon/extcon.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c > index 32e96cb49067..0e04ea185c26 100644 > --- a/drivers/extcon/extcon.c > +++ b/drivers/extcon/extcon.c > @@ -1367,9 +1367,8 @@ void extcon_dev_unregister(struct extcon_dev *edev) > list_del(&edev->entry); > mutex_unlock(&extcon_dev_list_lock); > > - if (IS_ERR_OR_NULL(get_device(&edev->dev))) { > - dev_err(&edev->dev, "Failed to unregister extcon_dev (%s)\n", > - dev_name(&edev->dev)); > + if (!get_device(&edev->dev)) { > + dev_err(&edev->dev, "Failed to unregister extcon_dev\n"); > return; > } > Applied it. Thanks. -- Best Regards, Samsung Electronics Chanwoo Choi