diff options
| author | Sang-Heon Jeon <ekffu200098@gmail.com> | 2026-09-29 02:06:37 +0900 |
|---|---|---|
| committer | Paul Moore <paul@paul-moore.com> | 2026-09-29 21:47:20 -0400 |
| commit | 881f19c2ffbc73f351b257e09c71e6059939b770 (patch) | |
| tree | 87fa52ff4ae95e049e857e9f40fa07a1c53ae7ba /security | |
| parent | 63b4c8561b436e8950409d6041fce43f12936f59 (diff) | |
lsm: remove redundant NULL check in security_init()
Since commit 5137e583ba26 ("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>
Diffstat (limited to 'security')
| -rw-r--r-- | security/lsm_init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/security/lsm_init.c b/security/lsm_init.c index dbda7771013b..8d5ecea99c46 100644 --- a/security/lsm_init.c +++ b/security/lsm_init.c @@ -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"); |
