]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: remove the unneeded result variable
authorXu Panda <xu.panda@zte.com.cn>
Mon, 12 Sep 2022 09:17:19 +0000 (09:17 +0000)
committerPaul Moore <paul@paul-moore.com>
Wed, 14 Sep 2022 11:47:27 +0000 (07:47 -0400)
commit7a5deae798488eb3ec0021c6b3881d06831ab819
tree7592e99ba72389eda93f0bc6eec06647a7997714
parent89b31c4b793c8fa96eaf47f1b5c7a89360679763
selinux: remove the unneeded result variable

Return the value avc_has_perm() directly instead of storing it in
another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Xu Panda <xu.panda@zte.com.cn>
[PM: subject line tweak]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c