aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2024-11-12 12:45:32 +0000
committerPaul Moore <[email protected]>2025-01-05 02:52:13 +0000
commit241d6a66404c975415fd0facaf70d61b37248f50 (patch)
treef80b7ad3abc321ce47b482cd2f3b4649399d89a4 /tools/testing/selftests/net/lib/py/utils.py
parentlsm: Only build lsm_audit.c if CONFIG_SECURITY and CONFIG_AUDIT are set (diff)
downloadkernel-241d6a66404c975415fd0facaf70d61b37248f50.tar.gz
kernel-241d6a66404c975415fd0facaf70d61b37248f50.zip
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 <[email protected]> Reviewed-by: Serge Hallyn <[email protected]> [PM: subj tweak] Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions