diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2024-11-12 15:45:32 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2025-01-05 05:52:13 +0300 |
commit | 241d6a66404c975415fd0facaf70d61b37248f50 (patch) | |
tree | f80b7ad3abc321ce47b482cd2f3b4649399d89a4 /tools/perf/scripts/python/task-analyzer.py | |
parent | 7ccbe076d987598b04b4b9c9b61f042291f9cc77 (diff) | |
download | linux-241d6a66404c975415fd0facaf70d61b37248f50.tar.xz |
security: remove redundant assignment to return variable
In the case where rc is equal to EOPNOTSUPP it is being reassigned a
new value of zero that is never read. The following continue statement
loops back to the next iteration of the lsm_for_each_hook loop and
rc is being re-assigned a new value from the call to getselfattr.
The assignment is redundant and can be removed.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Serge Hallyn <serge@hallyn.com>
[PM: subj tweak]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions