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; > } > > - acp_init(chip); > + ret = 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?
Attachment:
signature.asc
Description: PGP signature
- Follow-Ups:
- Re: [PATCH 1/2] ASoC: amd: acp: fix for acp_init function error handling
- From: Mukunda,Vijendar
- Re: [PATCH 1/2] ASoC: amd: acp: fix for acp_init function error handling
- References:
- [PATCH 1/2] ASoC: amd: acp: fix for acp_init function error handling
- From: Vijendar Mukunda
- [PATCH 1/2] ASoC: amd: acp: fix for acp_init function error handling
- Prev by Date: Re: [PATCH 18/22] nvdimm: virtio_pmem: drop owner assignment
- Next by Date: Re: Request to Add DMI Quirk for Lenovo IdeaPad Pro 5 16AHP9
- Previous by thread: [PATCH 2/2] ASoC: amd: acp: fix for acp pdm configuration check
- Next by thread: Re: [PATCH 1/2] ASoC: amd: acp: fix for acp_init function error handling
- Index(es):