diff options
author | Oleg Nesterov <[email protected]> | 2020-04-21 12:19:04 +0200 |
---|---|---|
committer | Eric W. Biederman <[email protected]> | 2020-04-30 06:40:14 -0500 |
commit | 1dd694a1b72f69a3add938f4b5bfb4cf9914b133 (patch) | |
tree | 97d731499e4568dca1f10e7b8b5e29e0f94f6d0c /scripts/gdb/linux/config.py | |
parent | 06576edd0e802cf72a7edaaa2fba7da7b94efaae (diff) |
remove the no longer needed pid_alive() check in __task_pid_nr_ns()
Starting from 2c4704756cab ("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]>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions