Re: [PATCH v2 1/1] mfd: stmfx: fix dev_err_probe call in stmfx_chip_init

From: Lee Jones
Date: Fri Nov 13 2020 - 08:37:09 EST


On Fri, 13 Nov 2020, Amelie Delaunay wrote:

> ret may be 0 so, dev_err_probe should be called only when ret is an error
> code.
>
> Fixes: 41c9c06c491a ("mfd: stmfx: Simplify with dev_err_probe()")
> Signed-off-by: Amelie Delaunay <amelie.delaunay@xxxxxx>
> ---
> v2: address Lee's comment about error handling area
> ---
> drivers/mfd/stmfx.c | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)

Applied, thanks.

--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog