]> git.baikalelectronics.ru Git - kernel.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)
commit5c7ee2237468c11a6980a9dfd57e2229e65bc2a2
tree1b3b37e5126b8827ed678cd80ba4b180ec9e9491
parent2519fccda460619a3272ed7a14950a00257e2e7e
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