]> git.ipfire.org Git - thirdparty/linux.git/commit
power: avs: smartreflex: no need to check return value of debugfs_create functions
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jun 2019 18:05:47 +0000 (20:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jun 2019 13:46:32 +0000 (15:46 +0200)
commit10ff826ab0a46e6fbac324b3a633c4943e2a745e
tree1b3b37e5126b8827ed678cd80ba4b180ec9e9491
parent6987738dfa4cdd8ef68149c2fe644d9c20397d76
power: avs: smartreflex: no need to check return value of debugfs_create functions

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.

And even when not checking the return value, no need to cast away the
call to (void), as these functions were never a "must check" type of a
function, so remove that odd cast.

Cc: Kevin Hilman <khilman@kernel.org>
Cc: Nishanth Menon <nm@ti.com>
Cc: linux-pm@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/power/avs/smartreflex.c