Commit 241d6a66 authored by Colin Ian King's avatar Colin Ian King Committed by Paul Moore
Browse files

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: default avatarColin Ian King <colin.i.king@gmail.com>
Reviewed-by: default avatarSerge Hallyn <serge@hallyn.com>
[PM: subj tweak]
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 7ccbe076
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment