summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2024-05-08 23:21:06 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2025-11-16 01:35:04 -0500
commit02da8d2c0965fe9183b6100e438a3aee8bc4e088 (patch)
treea2130fabd1f9bda4b8ca9d2267f032a5691e1f58
parent185d241c884401a455cfef808ebab633bf372b3a (diff)
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>
-rw-r--r--drivers/android/binderfs.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/android/binderfs.c b/drivers/android/binderfs.c
index a7b0a773d47f..8253e517ab6c 100644
--- a/drivers/android/binderfs.c
+++ b/drivers/android/binderfs.c
@@ -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)