smack: lsm: remove the unneeded result variable
authorXu Panda <xu.panda@zte.com.cn>
Mon, 12 Sep 2022 10:05:36 +0000 (10:05 +0000)
committerCasey Schaufler <casey@schaufler-ca.com>
Tue, 27 Sep 2022 17:33:03 +0000 (10:33 -0700)
commitd3f84f5c9627576b555976c7584514a2ca3ed02e
treef93648e1e5badabca975d5b553ca064773d958fd
parent4ca165fc6c49c3b0100f61524ffbca4743d46e8d
smack: lsm: remove the unneeded result variable

Return the value smk_ptrace_rule_check() 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>
Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
security/smack/smack_lsm.c