Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/cell/axon_msi: 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.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200209105901.1620958-5-gregkh@linuxfoundation.org

authored by

Greg Kroah-Hartman and committed by
Michael Ellerman
e04906aa f3c05201

+1 -5
+1 -5
arch/powerpc/platforms/cell/axon_msi.c
··· 480 480 481 481 snprintf(name, sizeof(name), "msic_%d", of_node_to_nid(dn)); 482 482 483 - if (!debugfs_create_file(name, 0600, powerpc_debugfs_root, 484 - msic, &fops_msic)) { 485 - pr_devel("axon_msi: debugfs_create_file failed!\n"); 486 - return; 487 - } 483 + debugfs_create_file(name, 0600, powerpc_debugfs_root, msic, &fops_msic); 488 484 } 489 485 #endif /* DEBUG */