2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 10:44:14 +08:00

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>
This commit is contained in:
Greg Kroah-Hartman 2019-01-22 15:57:39 +01:00 committed by Paul Burton
parent 9afbb71320
commit 4c90de4dd3
No known key found for this signature in database
GPG Key ID: 3EA79FACB57500DD

View File

@ -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;
}