Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove the no longer needed pid_alive() check in __task_pid_nr_ns()
Starting from 2c47047 ("pids: Move the pgrp and session pid pointers from task_struct to signal_struct") __task_pid_nr_ns() doesn't dereference task->group_leader, we can remove the pid_alive() check. pid_nr_ns() has to check pid != NULL anyway, pid_alive() just adds the unnecessary confusion. Signed-off-by: Oleg Nesterov <[email protected]> Reviewed-by: "Eric W. Biederman" <[email protected]> Acked-by: Christian Brauner <[email protected]> Signed-off-by: Eric W. Biederman <[email protected]>
- Loading branch information