binderfs_binder_ctl_create(): kill a bogus check

It's called once, during binderfs mount, right after allocating
root dentry.  Checking that it hadn't been already called is
only obfuscating things.

Looks like that bogosity had been copied from devpts...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
pull/1354/merge
Al Viro 2024-05-08 23:21:06 -04:00
parent 185d241c88
commit 02da8d2c09
1 changed files with 0 additions and 6 deletions

View File

@ -397,12 +397,6 @@ static int binderfs_binder_ctl_create(struct super_block *sb)
if (!device)
return -ENOMEM;
/* If we have already created a binder-control node, return. */
if (info->control_dentry) {
ret = 0;
goto out;
}
ret = -ENOMEM;
inode = new_inode(sb);
if (!inode)