diff options
| author | Colin Ian King <[email protected]> | 2024-11-12 12:45:32 +0000 |
|---|---|---|
| committer | Paul Moore <[email protected]> | 2025-01-05 02:52:13 +0000 |
| commit | 241d6a66404c975415fd0facaf70d61b37248f50 (patch) | |
| tree | f80b7ad3abc321ce47b482cd2f3b4649399d89a4 /drivers/net/ethernet/intel/igc | |
| parent | lsm: Only build lsm_audit.c if CONFIG_SECURITY and CONFIG_AUDIT are set (diff) | |
| download | kernel-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 'drivers/net/ethernet/intel/igc')
0 files changed, 0 insertions, 0 deletions
