Re: [PATCH 1/3] mfd: ab3100: no need to check return value of debugfs_create functions

From: Lee Jones
Date: Thu Aug 08 2019 - 03:32:30 EST


On Sat, 06 Jul 2019, Greg Kroah-Hartman wrote:

> When calling debugfs functions, there is no need to ever check the
> return value. The function can work or not, but the code logic should
> never do something different based on this.
>
> Cc: Linus Walleij <linus.walleij@xxxxxxxxxx>
> Cc: Lee Jones <lee.jones@xxxxxxxxxx>
> Cc: linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
> ---
> drivers/mfd/ab3100-core.c | 45 ++++++---------------------------------
> drivers/mfd/ab3100-otp.c | 21 ++++++------------
> 2 files changed, 13 insertions(+), 53 deletions(-)

Applied, thanks.

--
Lee Jones [æçæ]
Linaro Services Technical Lead
Linaro.org â Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog