Commit a612c07d authored by Al Viro's avatar Al Viro
Browse files

hostfs_mknod(): don't bother with init_special_inode()



read_name() in the end of hostfs_mknod() will DTRT

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 4d66952a
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;