]> 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)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 18 Jun 2019 08:54:32 +0000 (10:54 +0200)
commit87384b1ecec1f77dfefaa2a0dd0590196afecab0
tree39aa8878b63ae28d91908ad1568770540e56683a
parentdfe8599ce9df636226c8e6e1f358008c8db823fe
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.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/power/avs/smartreflex.c