[PATCH V2] selftests: lsm: Refactor `flags_overset_lsm_set_self_attr` test

2024-11-16 Thread Amit Vadhavana
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 Reviewed-by: Shuah Khan Signed-off-by: Amit Vadhavana --- V1:- https

[PATCH] selftests: lsm: Refactor `flags_overset_lsm_set_self_attr` test

2024-11-12 Thread Amit Vadhavana
- Remove unnecessary `tctx` variable, use `ctx` directly. - Simplified code with no functional changes. Signed-off-by: Amit Vadhavana --- tools/testing/selftests/lsm/lsm_set_self_attr_test.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/lsm