Re: [PATCH] mfd: max8997: Enforce mfd_add_devices() return valuecheck

From: Lee Jones
Date: Tue Dec 17 2013 - 08:24:08 EST


On Tue, 17 Dec 2013, Laszlo Papp wrote:

> The original author provided a random return value check which is
> redundant and seemingly floating. This patch not only relocates
> the check so it is more clearly associated with the invokation of
> mfd_add_devices(), but provides a store for the error value. We
> also print a meaningful message on error before returning.
>
> Signed-off-by: Laszlo Papp <lpapp@xxxxxxx>
> ---
> drivers/mfd/max8997.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)

Applied, thanks.

--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org â Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/