Commit 7a9b65a
selftests: refactor the lsm
Remove the temporary context variable `tctx` to simplify the code. use
the original context `ctx` directly in calls to `lsm_get_self_attr`,
eliminating redundancy without any functional changes.
Reviewed-by: Casey Schaufler <[email protected]>
Reviewed-by: Shuah Khan <[email protected]>
Signed-off-by: Amit Vadhavana <[email protected]>
[PM: subject tweak]
Signed-off-by: Paul Moore <[email protected]>flags_overset_lsm_set_self_attr test1 parent 0129201 commit 7a9b65a
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | | - | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
65 | | - | |
| 64 | + | |
66 | 65 | | |
67 | 66 | | |
68 | | - | |
| 67 | + | |
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
| |||
0 commit comments