Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp124740lqo; Wed, 27 Mar 2024 08:33:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0h1IdxcSBtPh58S5Ir9vatEd/fXfQxkCEZKf1n/fhCeyxmqKiNJGIYaDkz4XEftlF2OEPRe6gnbpWnSe2A+zX2Wg0NSK+gwF7Aec9+Q== X-Google-Smtp-Source: AGHT+IGYUdDqhYlRtX4Sl9S4lfkr7s/QbHtaE95eBgwDCkskRhOFMnGSeGUtq4OCuMLMYcdlHAxc X-Received: by 2002:a17:90a:34c6:b0:2a0:8d5f:b9fd with SMTP id m6-20020a17090a34c600b002a08d5fb9fdmr2449305pjf.47.1711553596983; Wed, 27 Mar 2024 08:33:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711553596; cv=pass; d=google.com; s=arc-20160816; b=gs+9ksO+9SB50kt6ii9NK+4DPH0xqS+EeeLXyvVzWsuMmSCSm6gc31adwrb5+2Az2O iyMUOF/QB/tFSnoFVkLXkb9CGTMTnTXTsZELYCutZEiOhI9r6fyjYdy/4miQJ92uvmUG R76kIqaidj4xGLn0QqcdosEqYYhisLWZ5yNaCD8MGLlrzuGdRKIBn2CNkKKNCcjCJtrS aUXbpb3PugalJRDu6rCRVs/VSMYYfwfxkaAQokwbpcFLbMnPYfHfA6yUhAcOBqIPEFDl cADqWuSW5osQ5RFhCyI6UR8PU/Pb8I9cMBHXSFg+eHtMueIN98CKRo6A+2MX1z7ZeKtt JFrQ== 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:dkim-signature; bh=05c0qbCcmcExlCLoE9f/NG5k3hWsDzVVd5fmBG1WCNE=; fh=dNSpKspDnleabSCj1b4AczvVSopW8XRVtGvS5iN3L8s=; b=ms0SI0cxfN8N37A1wNfe25reSL7OekYDTB/VoqTCM66r+vrhzxXJlK0iUCxmlFxrtl wwYm+5ixU02T0v9SiWOWTP55R8QuqX25PtfafkmhAfwzab9hRik5r7qFrJeBNktCQLT4 GW1UBlQgO+lTT8boRGDLbhDCzB/e4EdiMVe/rNXQuGNysZ360rdwS4WxYkr6FfV2VN40 cRnDkiHnuSm34v37oeHparzQUQPcGvb6raHgOopMbAi7AKyJkfoQYKXFlJ5613JpupJs chIZwjL9OWUpeuWsA+2T+RtNzrox/2jDZA/dDxcLC1C1sCY8JzSfL5se4/K42iSO9zpF AZvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pPwuCjRl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-121471-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121471-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id x24-20020a17090a8a9800b002a02900db51si1673444pjn.162.2024.03.27.08.33.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 08:33:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121471-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pPwuCjRl; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-121471-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121471-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 7F1FE29C19A for ; Wed, 27 Mar 2024 15:19:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10CE212DDAF; Wed, 27 Mar 2024 14:58:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pPwuCjRl" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 37954E546; Wed, 27 Mar 2024 14:58:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711551536; cv=none; b=nGRAz9HiVm7r0ZcCZ8uuYizEp7VgQ8JQoSHwW2/i5MwCc/U+P3g3kedAntjj01x6yexQkQyplTJKpEp4CwL+0o4HUXmbP8yEZ91YOK1e29DML2aAM8h0+8TnQi53qkWD4CrdYl6jMMgkTG97qHEhRqEHkqIUwz4NHBxygKUJ9v8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711551536; c=relaxed/simple; bh=/qS4x09dYgY6sXrlC/UAO2mdxYkbcHDpH5G5a5KiSBE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ttZ6kxrbdvnYG+XvuMabr+PA4fJZqRJDxTsD5+ldB04dUBTM2onxRXUf99+/kiiS9x77/VA81IJTcg2CPOvGpynI1laSM8ZZqdbcSKmKyI6tWZ2cyxK1yehO+uh+w6TWlMnW6LyzljuZIErx5fcS8JHwW3KKz04ka2fW93EKlt0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pPwuCjRl; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24936C433F1; Wed, 27 Mar 2024 14:58:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711551535; bh=/qS4x09dYgY6sXrlC/UAO2mdxYkbcHDpH5G5a5KiSBE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pPwuCjRlr2pf6LvffM7s/dfNggx+aqFSMFLisJ1jTW/SuAe+ldFFxLBE0YxDXQQBp rAi/m9dBaeqalOhAkjEM1aaW1pjMabgz/cgxhJ17AavvRlVqcoqoac4PSds8htaok1 K31oIFDom5coSJuhQ7soLqmzmvrsLxw1jkQidAl1lLduL+ie7q/MbllbhlZ452mTm7 HFzKaPfd68ysqzGwO8dkt3pTLJppzHr8XpUQa+QqZ3i+PsctWCPTNfJNd6d+PQiMUt HlZumMd6hU3V+G8vjBKytgsBSgy89g46+0F88J3oPA3kHrKT8SKGiPhvJnFFn7jrR7 ec5Jj/hBDkckw== Date: Wed, 27 Mar 2024 14:58:50 +0000 From: Mark Brown To: Vijendar Mukunda Cc: alsa-devel@alsa-project.org, venkataprasad.potturu@amd.com, Basavaraj.Hiregoudar@amd.com, Sunil-kumar.Dommati@amd.com, Liam Girdwood , Jaroslav Kysela , Takashi Iwai , Syed Saba Kareem , Jarkko Nikula , Claudiu Beznea , "open list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , open list Subject: Re: [PATCH 1/2] ASoC: amd: acp: fix for acp_init function error handling Message-ID: References: <20240327104657.3537664-1-Vijendar.Mukunda@amd.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="HHnNWzSd/b2J4Dry" Content-Disposition: inline In-Reply-To: <20240327104657.3537664-1-Vijendar.Mukunda@amd.com> X-Cookie: A rolling disk gathers no MOS. --HHnNWzSd/b2J4Dry Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 27, 2024 at 04:16:52PM +0530, Vijendar Mukunda wrote: > @@ -115,7 +115,10 @@ static int acp_pci_probe(struct pci_dev *pci, const = struct pci_device_id *pci_id > goto unregister_dmic_dev; > } > =20 > - acp_init(chip); > + ret =3D acp_init(chip); > + if (ret) > + return ret; > + The return check is good but shouldn't this be a 'goto unregister_dmic_dev' like the above case so we do cleanup? --HHnNWzSd/b2J4Dry Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmYENCkACgkQJNaLcl1U h9CYOwf7BZiqXeDfs5qRdUvEV6cGZnFIAaeLR8VhXpILbSHzmNxBzmFxPAC3BGQI xKGZ7bBdvf4funwt/P/PKxFh7p0o78PjkO9pzru4987ZlqH19RmzJvcc5+DU7lY0 Phf3ttUIpmZNDdXQi08pvBOLpJFsynY4v+EuUIpTdGLOHNB9k/Y5EKV3ZMV2pWn9 LFqxzfV00O03xEu+q7Dm20GthUd9c+pVRehCB7ZgFABe+39fZAclAnumiDS5WhMO i/uBEQTku/TMKuedQPP5AwG4kB4ZLIkYihT5X968UG270soc7b8dP9tKcAsbuz9p WEEvxqDuH8qQZ2/8VT0ipDeTOAbmAQ== =HydH -----END PGP SIGNATURE----- --HHnNWzSd/b2J4Dry--