[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aXk31GTmK_5wUQ9t@venus>
Date: Tue, 27 Jan 2026 23:12:03 +0100
From: Sebastian Reichel <sebastian.reichel@...labora.com>
To: Alexey Charkov <alchark@...il.com>
Cc: Liam Girdwood <lgirdwood@...il.com>, Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>, Heiko Stuebner <heiko@...ech.de>,
Sjoerd Simons <sjoerd.simons@...labora.com>, linux-sound@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-rockchip@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 04/10] ASoC: rockchip: spdif: Use dev_err_probe
Hello Alexey,
On Tue, Jan 27, 2026 at 09:31:18PM +0400, Alexey Charkov wrote:
> > ret = devm_snd_dmaengine_pcm_register(&pdev->dev, NULL, 0);
> > - if (ret) {
> > - dev_err(&pdev->dev, "Could not register PCM\n");
> > - return ret;
> > - }
> > + if (ret)
> > + dev_err_probe(&pdev->dev, ret, "Could not register PCM\n");
>
> Shouldn't this one return the error code, instead of falling through
> to 'return 0'?
Yes, good catch. I will fix that up in v2.
Thanks,
-- Sebastian
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists