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)
commit09b71adab09570fcc715ff31a6835d0e445e4a54
tree7592e99ba72389eda93f0bc6eec06647a7997714
parent6354324d8a3e31108b53ac8ac6e9b67c9485d75a
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