diff options
author | Joel Savitz <jsavitz@redhat.com> | 2025-05-08 14:49:29 -0400 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-05-09 13:13:54 +0200 |
commit | 5caa2d89b7f1c1249ca7cc47e10930d2cdabd8a5 (patch) | |
tree | 62cd03106d519dbb1ebf279205f5c6b5b8bac48d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bb01e8cc10f0c5b1151a5f047289fcfa5519e351 (diff) |
kernel/nsproxy: remove unnecessary guards
In free_nsproxy() and the error path of create_new_namesapces() the
put_*_ns() calls are guarded by unnecessary NULL checks.
put_pid_ns(), put_ipc_ns(), put_uts_ns(), and put_time_ns() will never
receive a NULL argument unless their namespace type is disabled, and in
this case all four become no-ops at compile time anyway. put_mnt_ns()
will never receive a null argument at any time.
This unguarded usage is in line with other call sites of put_*_ns().
Signed-off-by: Joel Savitz <jsavitz@redhat.com>
Link: https://lore.kernel.org/20250508184930.183040-2-jsavitz@redhat.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions