Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp336480pxb; Wed, 8 Sep 2021 02:19:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRYZ13jk8iv4xkk3JjhTnUZm4PR6CFF5TtzmhIbljsLejKgyijxKpjQBu18JlQ1IVpLASC X-Received: by 2002:a05:6402:205:: with SMTP id t5mr2814414edv.81.1631092790655; Wed, 08 Sep 2021 02:19:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631092790; cv=none; d=google.com; s=arc-20160816; b=Gso61yOhkH8EDx1GC0k/P+7jVitlmjKu5JO+43foEH3hHxCsuaIpRkfJF493T5LxJe zOr7b+SD5e2MDOOc/4U/yDll2/TtKsR3fsAb8JBk/EF7uKU8/LMqxx8HrQvo79V4BY9x rzGxhBajr6CMaydRSWGEJ8JefWq+L0xBvsxcODIKdbNIYroiHyGGYdLp/6d42BUvP86Y 6hmGe2sCXhnL5xQ4iVfReQoaqX78tZ8PI1zucTAUbnbXiZCX0bK9deo+hOFMfILSXviJ 5IjpBvbrb0zos//uNaJlN6iwFi8A8X87DOPqlFcg2IrSlsRqBc7Z48Ivii/IibFjmlfk D4qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=T2c/dKF/NmzeU/Pz9KF6bBPx6B2E6qRty6IOrieG50s=; b=eUkRzoq3EZRiXzc8wz0Z0HPthoeM9QAcZP/Ae7aGaz23lSYQ5tdHNr0Da5bN3b3QYe 20ZyKU1mKgZMh03l91C5fPjbyIf0B89a+epHmUVJ5E+2K347W3VBNH/lTxL70FkLv3hY IAW6jtryGH1T+fU3kTtQ0B+3eYbU6hQDOaic3Px3LHIwPIe4uZg94GH3pbBCXrDrlXN+ m+kkouis6bWwrQ2oSLIyHK7Bv+TSj/mXSqK2Gsl7SRicNRY2r2Pj73cOdvo9x13SFmq7 PNm2dKqZQFfgXAbsg6PYJCfOmbGivNsbprLqFYgaPnZtBIZYgBPIZJge0xQerBsls9Tz cghg== ARC-Authentication-Results: i=1; mx.google.com; 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 v1si1817061ejd.643.2021.09.08.02.19.26; Wed, 08 Sep 2021 02:19:50 -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; 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 S1351359AbhIHJSr (ORCPT + 99 others); Wed, 8 Sep 2021 05:18:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351353AbhIHJSq (ORCPT ); Wed, 8 Sep 2021 05:18:46 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24512C061757 for ; Wed, 8 Sep 2021 02:17:39 -0700 (PDT) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mNti4-0002ko-Kl; Wed, 08 Sep 2021 11:17:36 +0200 Received: from ukl by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mNti3-00020W-RH; Wed, 08 Sep 2021 11:17:35 +0200 Date: Wed, 8 Sep 2021 11:17:35 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: zhaoxiao Cc: thierry.reding@gmail.com, lee.jones@linaro.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pwm: ab8500: Don't check the return code of pwmchip_remove() Message-ID: <20210908091735.yxyr7wqpbyirkw73@pengutronix.de> References: <20210908060200.7876-1-long870912@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210908060200.7876-1-long870912@gmail.com> User-Agent: NeoMutt/20180716 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello zhaoxiao, On Wed, Sep 08, 2021 at 02:02:00PM +0800, zhaoxiao wrote: > pwmchip_remove() returns always 0. Don't use the value to make it > possible to eventually change the function to return void. Also the > driver core ignores the return value of ab8500_pwm_remove() > and considers the device removed anyhow. So returning early results > in a resource leak. > > Signed-off-by: zhaoxiao Can you please base your patches on top of linux-next? This patch is invalid in the presence of https://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git/commit/?h=for-next&id=14ac9e17f9bd4bd0dfe18e384a3c2ca8dfbffcc8 So this is waste of your (and my) time :-\ Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | https://www.pengutronix.de/ |