diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-22 15:57:39 +0100 |
---|---|---|
committer | Paul Burton <paul.burton@mips.com> | 2019-01-22 20:17:20 +0100 |
commit | 4c90de4dd33d90a3d98dd7bc510cd7ed688634be (patch) | |
tree | 303667d7f6de6f1b1ad5abeb96f6201c3324b0aa /arch/mips/ralink | |
parent | mips: cavium: no need to check return value of debugfs_create functions (diff) | |
download | linux-4c90de4dd33d90a3d98dd7bc510cd7ed688634be.tar.xz linux-4c90de4dd33d90a3d98dd7bc510cd7ed688634be.zip |
mips: ralink: 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.
Cc: John Crispin <john@phrozen.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Paul Burton <paul.burton@mips.com>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Diffstat (limited to 'arch/mips/ralink')
-rw-r--r-- | arch/mips/ralink/bootrom.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/mips/ralink/bootrom.c b/arch/mips/ralink/bootrom.c index e1fa5972a81d..648f5eb2ba68 100644 --- a/arch/mips/ralink/bootrom.c +++ b/arch/mips/ralink/bootrom.c @@ -35,13 +35,7 @@ static const struct file_operations bootrom_file_ops = { static int bootrom_setup(void) { - if (!debugfs_create_file("bootrom", 0444, - NULL, NULL, &bootrom_file_ops)) { - pr_err("Failed to create bootrom debugfs file\n"); - - return -EINVAL; - } - + debugfs_create_file("bootrom", 0444, NULL, NULL, &bootrom_file_ops); return 0; } |