Skip to content

Commit

Permalink
ANDROID: binder: Clean up unused proc dir checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Lunarixus authored and Lunarixus committed Feb 7, 2020
1 parent 528c655 commit 79430f6
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions drivers/staging/android/binder.c
Original file line number Diff line number Diff line change
Expand Up @@ -3546,17 +3546,6 @@ static int binder_open(struct inode *nodp, struct file *filp)
&binder_proc_fops);
}

if (binder_proc_dir_entry_proc) {
char strbuf[11];
snprintf(strbuf, sizeof(strbuf), "%u", proc->pid);
if (exist_proc_entry(strbuf, binder_proc_dir_entry_proc))
remove_proc_entry(strbuf, binder_proc_dir_entry_proc);

create_proc_read_entry(strbuf, S_IRUGO,
binder_proc_dir_entry_proc,
procfs_binder_read_proc_proc, proc);
}

return 0;
}

Expand Down Expand Up @@ -3592,11 +3581,6 @@ static int binder_release(struct inode *nodp, struct file *filp)
{
struct binder_proc *proc = filp->private_data;
debugfs_remove(proc->debugfs_entry);
if (binder_proc_dir_entry_proc) {
char strbuf[11];
snprintf(strbuf, sizeof(strbuf), "%u", proc->pid);
remove_proc_entry(strbuf, binder_proc_dir_entry_proc);
}
binder_defer_work(proc, BINDER_DEFERRED_RELEASE);

return 0;
Expand Down

0 comments on commit 79430f6

Please sign in to comment.