lsm: remove redundant NULL check in security_init()

Since commit 5137e583ba ("lsm: cleanup the debug and console output
in lsm_init.c"), the NULL check for lsm_order_legacy in security_init()
has no effect.

So remove the check.

No functional change.

Signed-off-by: Sang-Heon Jeon <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
This commit is contained in:
Sang-Heon Jeon
2026-09-29 21:47:20 -04:00
committed by Paul Moore
parent 63b4c8561b
commit 881f19c2ff
+1 -2
View File
@@ -431,8 +431,7 @@ int __init security_init(void)
}
if (lsm_order_cmdline) {
if (lsm_order_legacy)
lsm_order_legacy = NULL;
lsm_order_legacy = NULL;
lsm_order_parse(lsm_order_cmdline, "cmdline");
} else
lsm_order_parse(lsm_order_builtin, "builtin");