mirror of
https://github.com/torvalds/linux.git
synced 2026-10-23 07:11:03 +02: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 <ekffu200098@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:
parent
63b4c8561b
commit
881f19c2ff
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user