VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   35 Branches   59 Tags
author: Al Viro <viro@zeniv.linux.org.uk> 2021-02-10 00:01:06 -0500 committer: Al Viro <viro@zeniv.linux.org.uk> 2021-03-12 22:15:21 -0500 commit: a612c07dd20107280751ceeb46692f7653bba424 parent: 4d66952a2032cf6b65183fc4a8d8039304c70d48
Commit Summary:
hostfs_mknod(): don't bother with init_special_inode()
Diffstat:
1 file changed, 0 insertions, 1 deletion
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c
index 29e407762626..aed8c4f28ad3 100644
--- a/fs/hostfs/hostfs_kern.c
+++ b/fs/hostfs/hostfs_kern.c
@@ -712,7 +712,6 @@ static int hostfs_mknod(struct user_namespace *mnt_userns, struct inode *dir,
 	if (name == NULL)
 		goto out_put;
 
-	init_special_inode(inode, mode, dev);
 	err = do_mknod(name, mode, MAJOR(dev), MINOR(dev));
 	if (err)
 		goto out_free;