Re: [PATCH] mwifiex: no need to check return value of debugfs_create functions

From: Kalle Valo
Date: Fri Feb 01 2019 - 07:40:19 EST


Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> 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: Amitkumar Karwar <amitkarwar@xxxxxxxxx>
> Cc: Nishant Sarmukadam <nishants@xxxxxxxxxxx>
> Cc: Ganapathi Bhat <gbhat@xxxxxxxxxxx>
> Cc: Xinming Hu <huxinming820@xxxxxxxxx>
> Cc: Kalle Valo <kvalo@xxxxxxxxxxxxxx>
> Cc: linux-wireless@xxxxxxxxxxxxxxx
> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

Patch applied to wireless-drivers-next.git, thanks.

a0b449dc4c67 mwifiex: no need to check return value of debugfs_create functions

--
https://patchwork.kernel.org/patch/10775747/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches