Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp106358rdb; Wed, 7 Feb 2024 23:47:13 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXvIlCpkTIekU0ShDRJSykfmmq9y/fHgyFXZB4WpIV6rrTDkQyvvbo4Vb5iF8814yeF4zZh1NZEnaDXZOKAtrTg8pMP4g3Q6yNoMhPZkQ== X-Google-Smtp-Source: AGHT+IExZo9LAORCPpdtwBXqxoznMOwT91hJZsJlZehCjZLH21Gc61Vo+7HMzEuWH5/ztfW9m1ox X-Received: by 2002:a05:6402:7c3:b0:55f:f343:9f38 with SMTP id u3-20020a05640207c300b0055ff3439f38mr5236631edy.19.1707378432784; Wed, 07 Feb 2024 23:47:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707378432; cv=pass; d=google.com; s=arc-20160816; b=hmz9OjBMIhuGLGoNttV0+ZQnMH5m+65nlb2rCloj/Z1lyOXNBSlrHj622t7ghYrXt+ r1WO3/su7zIVwUm1fpMdfrboyE7TemwnJszV6GS5Wvp3b+DiXLWUm90P/QiVkfqea6Zz IXtnM+7wMvVT2WzsmerP+6bkNSj4Y3A3mGHXPiLX6qdNt+tnfAx3IyUGnCPDGmIxb6R5 ccb97vvUamFHKsuNpBbbmUyeIjiogWhpo26MmsFH7nbTPx80xBlh/rlwRq4ODxxs8Nby Ba1grJ+8p00XQeC33SKD/0tOXHUEic4Tjy5BssGALoeVrBYGFz7EkmEvYUEneUa3KOlo MThA== 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=Ux7aRsphw8p/7qbF2qb26oCKdyojzYUURNjlSyvMh+U=; fh=ZzczpoJUEE26V9rSSwJkDAzXUwwBhNpnHs0T4qd4tOo=; b=W7fc6hjSHiwOKZBjr5cw9vsERMYhFHXCW4/uk8SPYn/mUblRdsRJSZFw4++vY1DAwc eki1TrmnH+Ruv9ZlLLhXe6YSFP2LEFPQlq9ZRGC6QDSByNhaxQVwIB/45E0sx1IJ1Ymu HlIsHmS31YSkkBLrprwf1843NobKmaC+CBHEiF7Lv5ouN21as1i46v5kw08A9fXoCs+3 yTd2k94/Y0a1Ix6IjtfVbuqhiaMM9Km7ynnLd2mdY5B/yMjbxUDHvpA7MG+WQs0bAa5l jq/mHXTei5zN79nqDBqHm9CJYzWlWIBc+t4GGSq3/wm8ZJTnFlazHRkmBkGUKbhEuUew vlHg==; 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-57571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57571-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCX7I31/v8cicV3X3td8depW7mgb3NUhx2z5srmpMvrZj0TNm/4rC4AKfDStREolMlKlqiB5E9MzmIQKw7XmxRp23EpUkRslYt2f7K3lJg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dk19-20020a0564021d9300b0056116c2a837si65504edb.625.2024.02.07.23.47.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 23:47:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-57571-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57571-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 86C481F2360E for ; Thu, 8 Feb 2024 07:47:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9A5169D36; Thu, 8 Feb 2024 07:47:04 +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 5EF566930E for ; Thu, 8 Feb 2024 07:47:00 +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=1707378424; cv=none; b=pregPYjQAJwWJs24Ge0JWVEoq02xlJ7nAdNjT9jq34tMXOohiKon4UiIhR2C+nqSgT+ncc9GZhZFQ+cWFMNmh0jQajmLQ0GhMmvBG6LpwP0wDiHzX6e/nljxNmNnDOIEmdpknk4XBz2tWD6tois2Ooa94m8T8nK8Z6u0HzT9BgY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707378424; c=relaxed/simple; bh=jypAfUbIvbUyT0Wu4Q94MHamlS5MN7DK7z7R5vymIIA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fWHL8dnGbu6KHU4uO8p9BsHoulLYgMGX5i8jINJt/GAS/DDt9FoDXlkfopE7G0gtmx1A3TPw+sUVnmMkJ2GqBe+fcuYtnzS/T22Jenu5W5F2pqzUpNdrLRzfCic3o2sgS5ESrIZydVErQO5i92d+FM3JEiVWoyhlECClc8qAM9c= 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 1rXz7O-0007qt-7f; Thu, 08 Feb 2024 08:46:46 +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 1rXz7M-005Aii-S1; Thu, 08 Feb 2024 08:46:44 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rXz7M-000CVE-2W; Thu, 08 Feb 2024 08:46:44 +0100 Date: Thu, 8 Feb 2024 08:46:44 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: andriy.shevchenko@linux.intel.com, Raag Jadav Cc: jarkko.nikula@linux.intel.com, mika.westerberg@linux.intel.com, lakshmi.sowjanya.d@intel.com, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/5] pwm: dwc: drop redundant error check Message-ID: References: <20240208070529.28562-1-raag.jadav@intel.com> <20240208070529.28562-2-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="xlh5lne2t7smrnyn" Content-Disposition: inline In-Reply-To: <20240208070529.28562-2-raag.jadav@intel.com> 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 --xlh5lne2t7smrnyn Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 08, 2024 at 12:35:25PM +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. Is this really true? pcim_iomap_table() calls devres_alloc_node() which might fail if the allocation fails. (Yes, I know https://lwn.net/Articles/627419/, but the rule is still to check for errors, right?) What am I missing? Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --xlh5lne2t7smrnyn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmXEhuMACgkQj4D7WH0S /k5Olwf/dwZIJw628t/aGAEw0FtU/HzoSUJ1BaFp000aDowWve+BF2cPDzakhFi4 BdLaB0m7H5BPs0FpeUv9mTaVEdCiXsQaOE2yPQTmbeiy5/cqMVftPkUfJvSx4oRM uNAeg8VdiNC+7GrjJ9A9rcZwRbF9yoO8rjJ+1fH7M4q7IAfxWgKu2LcjhjFGRuAs B4XRgoLdDBYpVtHX4IMFX3NVrk2nAFYMQmNd4mvjxteC7i3CRB9N8HDiFXzFTISl 1h7olr5Vq0sNB97QfZX100PeaJcdZo2o89NR/RMd3XWiL/fDPAnneWTgXduP3mxk mbTudFFjPoRxG5POPxqzQYWo+yORiw== =XhB1 -----END PGP SIGNATURE----- --xlh5lne2t7smrnyn--