Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp982197rdb; Sun, 18 Feb 2024 23:27:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWMjFWEUj9bIzKutgmNCQUzUwl2ayJ1ZVL1knOdZxB+2FGtseNUgz8QBBSntWz3fKNGrv1+OwVmVW+f+mCfCxFPtEnOmt2pqJxQl1P6bA== X-Google-Smtp-Source: AGHT+IEJTC0KZcJdPrOlBX+A4JfNfq22NqDCiJ1wSxop7J5xP9jA7mNOVpGwxmdpYAitOwXOU1f+ X-Received: by 2002:a05:6808:181f:b0:3c1:5377:78 with SMTP id bh31-20020a056808181f00b003c153770078mr4915894oib.23.1708327678693; Sun, 18 Feb 2024 23:27:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708327678; cv=pass; d=google.com; s=arc-20160816; b=KS22QsBwTPvM23Y5U5PhWCci8HKAcKdA7lBveEF/yRljvjOf193xhY6TrRRZgir5eq 3yrGE3mtphV7JwbVBXfVHCTDxVtCVheLBgLxVHCbkik0WFhDGQYV5AOzdrJGGetOWmDC VLEWo+unxwYWrm9NSolm8WvBTnvt0OEHyNaXps8wExC9P5ibJihIQ2AgdUH12Omwt1M9 3YjoQZ6V6QIM7A+3CzTTByHivMrnNN2t3HmwjVG1CRtuf187/aBd6WbpT+z8brMDX7A0 570DnMsognjQ9tkH7DNqeTjW+p2CTbmfOQ8rKVM8z/dM/YVtrPHjlWVxXcqK2I8iZPqb 5IVQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=c9lCJRGQGbccBScGi1szdSHdkFZiXSfKPY82alXARns=; fh=Uk/TfF5LfudtyQ9NWup+JqB8idmIbVTc7XPiZ91x6ok=; b=ZLtSLP+Ut4NewBGYFvm3ZOqCFdqTi7r0VobtFyc3WVXoCi/VQNpp00X5iLuzmDHcVk pZwfHOti7CdhDOT7DhmSh5P2p/Ix1sDUio5g8qMkxcvqbpOvYMebxTGE9CNX2LKvyUUP M26r1bOngJhrakWDrme1Hn7LDSCEeV0HlMLv5XMOyhFbUnkUxWgkLhJ76N5ib6cN4kPk m2G7EnfG3A5RYpvUS8pGekB5BVJXMbZRYAGca9QtkV22AM7i5ZR/jaXXF3wWPTIRRofh Vhl9VIMsBi2zjtW+EzKzKf3YIIfv0udL9O8wdnc1PXwKcZ/GrEZz5OWFkyXDQmwMe8kq zveA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-70828-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70828-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id p10-20020a056a000b4a00b006e04a017037si1966740pfo.209.2024.02.18.23.27.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Feb 2024 23:27:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-70828-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-70828-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-70828-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4A889282A2B for ; Mon, 19 Feb 2024 07:27:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C37D420B10; Mon, 19 Feb 2024 07:27:54 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 879B08F5A for ; Mon, 19 Feb 2024 07:27:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708327674; cv=none; b=eaFamawozRSYM3h8bijYXYHRAV7GdG6IBVa2DNC6u4pAVLdtyRfxszmalZFFJiFpsDE6tN0r1+chRJtLd0daLrU0vCSoLKBMyw5cHsaEyiIY6AwC7iC2rKwc0TMoK1XRuj3IxYca5YghIQ4F+wSfszbZAW9GL+KTF4cc7OKDPrE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708327674; c=relaxed/simple; bh=LpYe01TsbmJNiqg3EgJ1Xuy8jlq/JFizuY2pktlKi0o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Fjzq8OmUqYtyPtJnO2zlsirlItlhziio/Bexa1c/pE+BNgQ6hqL3AEHBv3aYhSIxfXdx9Etk/t7XY6Xx7CxkK3DOZMA2EgQPelkQvF9iMPAHjmWpc7PQPxdt1dVB3dE6d6oG0oU4/J4yioYNWHstnACyVG7fEjLHAEpCu9m6FpY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rby40-0007jN-LF; Mon, 19 Feb 2024 08:27:44 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rby3z-001bCq-ES; Mon, 19 Feb 2024 08:27:43 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rby3z-007b4b-1A; Mon, 19 Feb 2024 08:27:43 +0100 Date: Mon, 19 Feb 2024 08:27:43 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Thorsten Scherer Cc: Raag Jadav , jarkko.nikula@linux.intel.com, mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com, lakshmi.sowjanya.d@intel.com, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/4] pwm: dwc: drop redundant error check Message-ID: <4cl5y62fv4jezk7i3cacv5ukzwyp66uflp3upg4czy4dp7g43v@cfbm2seewpst> References: <20240219033835.11369-1-raag.jadav@intel.com> <20240219033835.11369-3-raag.jadav@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dn262ebptnesc56h" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org --dn262ebptnesc56h Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Mon, Feb 19, 2024 at 08:11:00AM +0100, Thorsten Scherer wrote: > On Mon, Feb 19, 2024 at 09:08:33AM +0530, Raag Jadav wrote: > > pcim_iomap_table() fails only if pcim_iomap_regions() fails. No need to > > check for failure if the latter is already successful. > >=20 > > Suggested-by: Andy Shevchenko > > Signed-off-by: Raag Jadav > > Tested-by: Jarkko Nikula > > --- > > drivers/pwm/pwm-dwc.c | 5 +---- > > 1 file changed, 1 insertion(+), 4 deletions(-) > >=20 > > diff --git a/drivers/pwm/pwm-dwc.c b/drivers/pwm/pwm-dwc.c > > index c0e586688e57..7dbb72c80ef5 100644 > > --- a/drivers/pwm/pwm-dwc.c > > +++ b/drivers/pwm/pwm-dwc.c > > @@ -51,11 +51,8 @@ static int dwc_pwm_probe(struct pci_dev *pci, const = struct pci_device_id *id) > > return ret; > > } > > =20 > > + /* No need to check for failure, pcim_iomap_regions() does it for us.= */ >=20 > IMHO this comment could be omitted. I like the comment (and even asked for it). Is it really only me who doesn't know that after pcim_iomap_regions() calling pcim_iomap_table() is unproblematic? Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --dn262ebptnesc56h Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmXTAucACgkQj4D7WH0S /k5rlAf8DcLuxE9fQ2TvQDm+mkZsExqPNtSysZ3trhKvVvPblwBvXtmSVDOL4JoH VqwwkkjcXzhb/DfvJBcYt+wbDynVbnPUFyFVYZ6EYFmuhdUZunZjfeZfaM60Dd7E E4RvZnQEZ0KlJzVfGfvfk6J12z7GLCL7bD9dfBdFjwKMaWyE4Z+iXOrSCexGaIpf T1TqdYf72gc0MG7FZxTrptZThQcsqwyYNjvHtbfdrTfGYYaCiJ4BQ++Nwvx8/vds OLCTsGJL14o5A03hOsPQ5C1Vb4OCK58y9VdI3Cdx28eNeCOznFVa8MZefcQslfO2 l55tQ2v2SPgVIgy3YMuFEukSh8NvvA== =S4CL -----END PGP SIGNATURE----- --dn262ebptnesc56h--