aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/pmb.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-22 09:50:30 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-03 09:39:40 -0400
commit03eb2a08fccc49f93587666e4e1a14ce00df955a (patch)
tree30bf5b474f452fc6c80834a3c16dd569262559d0 /arch/sh/mm/pmb.c
parent2fcc6e202a9d45f1556365ee4f4de973e1c834ec (diff)
sh: 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: Yoshinori Sato <ysato@users.sourceforge.jp> Cc: Rich Felker <dalias@libc.org> Cc: <linux-sh@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/sh/mm/pmb.c')
-rw-r--r--arch/sh/mm/pmb.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/arch/sh/mm/pmb.c b/arch/sh/mm/pmb.c
index a53a040d0054..b59bad86b31e 100644
--- a/arch/sh/mm/pmb.c
+++ b/arch/sh/mm/pmb.c
@@ -861,13 +861,8 @@ static const struct file_operations pmb_debugfs_fops = {
861 861
862static int __init pmb_debugfs_init(void) 862static int __init pmb_debugfs_init(void)
863{ 863{
864 struct dentry *dentry; 864 debugfs_create_file("pmb", S_IFREG | S_IRUGO, arch_debugfs_dir, NULL,
865 865 &pmb_debugfs_fops);
866 dentry = debugfs_create_file("pmb", S_IFREG | S_IRUGO,
867 arch_debugfs_dir, NULL, &pmb_debugfs_fops);
868 if (!dentry)
869 return -ENOMEM;
870
871 return 0; 866 return 0;
872} 867}
873subsys_initcall(pmb_debugfs_init); 868subsys_initcall(pmb_debugfs_init);