hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/s390/hypfs/hypfs_dbfs.c
....@@ -78,14 +78,11 @@
7878 .unlocked_ioctl = dbfs_ioctl,
7979 };
8080
81
-int hypfs_dbfs_create_file(struct hypfs_dbfs_file *df)
81
+void hypfs_dbfs_create_file(struct hypfs_dbfs_file *df)
8282 {
8383 df->dentry = debugfs_create_file(df->name, 0400, dbfs_dir, df,
8484 &dbfs_ops);
85
- if (IS_ERR(df->dentry))
86
- return PTR_ERR(df->dentry);
8785 mutex_init(&df->lock);
88
- return 0;
8986 }
9087
9188 void hypfs_dbfs_remove_file(struct hypfs_dbfs_file *df)
....@@ -93,10 +90,9 @@
9390 debugfs_remove(df->dentry);
9491 }
9592
96
-int hypfs_dbfs_init(void)
93
+void hypfs_dbfs_init(void)
9794 {
9895 dbfs_dir = debugfs_create_dir("s390_hypfs", NULL);
99
- return PTR_ERR_OR_ZERO(dbfs_dir);
10096 }
10197
10298 void hypfs_dbfs_exit(void)