On Fri, Mar 15, 2024 at 03:23:32PM +0100, Herve Codina wrote: > Mark Brown <broonie@xxxxxxxxxx> wrote: > > dev_err_probe() with a fixed error code doesn't seem to make much sense, > > the whole point is to handle deferral but for a straight lookup like > > this that can't happen. > The error code is uniformly formatted and the error path is more compact. > https://elixir.bootlin.com/linux/latest/source/drivers/base/core.c#L4963 > IMHO, to benefit of these feature, it makes sense to use it even with a fixed > error code. I'm not convinced TBH, the fixed error code smells pretty bad.
Attachment:
signature.asc
Description: PGP signature
- Follow-Ups:
- Re: [PATCH 04/13] ASoC: ti: davinci-i2s: Replace dev_err with dev_err_probe
- From: Bastien Curutchet
- Re: [PATCH 04/13] ASoC: ti: davinci-i2s: Replace dev_err with dev_err_probe
- References:
- [PATCH 00/13] ASoC: ti: davinci-i2s: Add features to McBSP driver
- From: Bastien Curutchet
- [PATCH 04/13] ASoC: ti: davinci-i2s: Replace dev_err with dev_err_probe
- From: Bastien Curutchet
- Re: [PATCH 04/13] ASoC: ti: davinci-i2s: Replace dev_err with dev_err_probe
- From: Mark Brown
- Re: [PATCH 04/13] ASoC: ti: davinci-i2s: Replace dev_err with dev_err_probe
- From: Herve Codina
- [PATCH 00/13] ASoC: ti: davinci-i2s: Add features to McBSP driver
- Prev by Date: Re: [PATCH 00/18] Add audio support for the MediaTek Genio 350-evk board
- Next by Date: Re: [PATCH 09/13] ASoC: ti: davinci-i2s: Enable unexpected frame pulses detection
- Previous by thread: Re: [PATCH 04/13] ASoC: ti: davinci-i2s: Replace dev_err with dev_err_probe
- Next by thread: Re: [PATCH 04/13] ASoC: ti: davinci-i2s: Replace dev_err with dev_err_probe
- Index(es):