selinux: remove an unneeded variable in sel_make_class_dir_entries()
authorye xingchen <ye.xingchen@zte.com.cn>
Tue, 30 Aug 2022 08:41:24 +0000 (08:41 +0000)
committerPaul Moore <paul@paul-moore.com>
Tue, 30 Aug 2022 20:26:01 +0000 (16:26 -0400)
commit5698f08169b905ed215fa7f45e89b42283ed0554
treecbda906ae14ab2c7abf1cef13e36608b38888817
parent568035b01cfb107af8d2e4bd2fb9aea22cf5b868
selinux: remove an unneeded variable in sel_make_class_dir_entries()

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

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
[PM: subject line tweak]
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/selinuxfs.c