[PATCH] lsm: remove redundant NULL check in security_init()

Paul Moore paul at paul-moore.com
Wed Sep 30 01:47:17 UTC 2026


On Sep 28, 2026 Sang-Heon Jeon <ekffu200098 at gmail.com> wrote:
> 
> 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 at gmail.com>
> ---
>  security/lsm_init.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

Merged into lsm/dev, thanks.

--
paul-moore.com



More information about the Linux-security-module-archive mailing list