OSDN Git Service

clk: no need to check return value of debugfs_create functions
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 May 2018 16:08:00 +0000 (18:08 +0200)
committerStephen Boyd <sboyd@kernel.org>
Sat, 2 Jun 2018 02:22:26 +0000 (19:22 -0700)
commit8a26bbbb932021fd6ce8821ca8b2e6771b8ff7d2
treed06f7d69c0c3f2e2f9904c098e0d39a358973e76
parent60cc43fc888428bb2f18f08997432d426a243338
clk: 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.

This cleans up the init code a lot, and there's no need to return an
error value based on the debugfs calls, especially as it turns out no
one was even looking at that return value.  So it obviously wasn't that
important :)

Cc: Michael Turquette <mturquette@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk.c