Re: [PATCH 1/2] mfd: twl6030: Make twl6030_exit_irq() return void

From: Lee Jones
Date: Thu Apr 28 2022 - 12:24:30 EST


On Thu, 13 Jan 2022, Uwe Kleine-König wrote:

> This function returns 0 unconditionally, so there is no benefit in
> returning a value at all and make the caller do error checking.
>
> Also the caller (twl_remove()) cannot do anything sensible with an error
> code. Passing it up the call stack isn't a good option because the i2c core
> ignores error codes (apart from emitting an error message).
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
> ---
> drivers/mfd/twl-core.c | 4 ++--
> drivers/mfd/twl-core.h | 2 +-
> drivers/mfd/twl6030-irq.c | 3 +--
> 3 files changed, 4 insertions(+), 5 deletions(-)

Applied, thanks.

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