Re: [PATCH 1/2] ASoC: spacemit: Drop redundant error messages
"Troy Mitchell" <[email protected]> Sun, 02 Aug 2026 19:30:08 -0700
| Newsgroups | org.kernel.vger.linux-sound,dev.linux.lists.spacemit,org.infradead.lists.linux-riscv,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Fri Jul 31, 2026 at 3:15 AM PDT, phucduc.bui wrote: > From: bui duc phuc <[email protected]> > > The called functions already log failures where appropriate. Return the > original error directly and avoid duplicate error messages. > > Signed-off-by: bui duc phuc <[email protected]> > --- > sound/soc/spacemit/k1_i2s.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/sound/soc/spacemit/k1_i2s.c b/sound/soc/spacemit/k1_i2s.c > index cd461f2aa756..64510c9a1a89 100644 > --- a/sound/soc/spacemit/k1_i2s.c > +++ b/sound/soc/spacemit/k1_i2s.c > @@ -478,7 +478,7 @@ static int spacemit_i2s_probe(struct platform_device *pdev) > > i2s->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); > if (IS_ERR(i2s->base)) > - return dev_err_probe(i2s->dev, PTR_ERR(i2s->base), "failed to map registers\n"); > + return PTR_ERR(i2s->base); > > i2s->reset = devm_reset_control_get_exclusive(&pdev->dev, NULL); > if (IS_ERR(i2s->reset)) > @@ -495,7 +495,7 @@ static int spacemit_i2s_probe(struct platform_device *pdev) > &spacemit_i2s_component, > dai, 1); > if (ret) > - return dev_err_probe(i2s->dev, ret, "failed to register component"); > + return ret; > > return devm_snd_dmaengine_pcm_register(&pdev->dev, &spacemit_dmaengine_pcm_config, 0); > } Reviewed-by: Troy Mitchell <[email protected]> -- Troy Mitchell
signature.asc
(application/pgp-signature, 248 B)
-----BEGIN PGP SIGNATURE----- iIMEABYKACsWIQSL4Ay2cExaPXAQcU2YCe+A+TM0LwUCam/9MA0caUB0cm95LXku b3JnAAoJEJgJ74D5MzQvAxQA/2DYCuc67ctUxgO1VADuU8NdphBXB5/3GDya8AM5 p+GmAQDtiqRFSDixu2qu42rj/vId1THpHiepPIVvYmqVFAwCCg== =ZzYU -----END PGP SIGNATURE-----