Commit 241d6a6
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]>1 parent 7ccbe07 commit 241d6a6
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4138 | 4138 | | |
4139 | 4139 | | |
4140 | 4140 | | |
4141 | | - | |
4142 | | - | |
| 4141 | + | |
4143 | 4142 | | |
4144 | | - | |
4145 | 4143 | | |
4146 | 4144 | | |
4147 | 4145 | | |
| |||
0 commit comments