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

Lee Jones lee.jones at linaro.org
Fri Nov 13 08:37:01 EST 2020


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 at st.com>
> ---
> 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



More information about the linux-arm-kernel mailing list