mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
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:
committed by
Paul Moore
parent
63b4c8561b
commit
881f19c2ff
+1
-2
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user