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

From: Marc Gonzalez
Date: Thu Jun 13 2019 - 11:27:19 EST


On 13/06/2019 14:24, 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.

Naive question: if callers are supposed to ignore the return value,
why not change the prototype to void (no return value) ?

Regards.