]> git.baikalelectronics.ru Git - kernel.git/commit
audit: remove redundant condition check in kauditd_thread()
authorYunfeng Ye <yeyunfeng@huawei.com>
Wed, 23 Oct 2019 13:27:34 +0000 (21:27 +0800)
committerPaul Moore <paul@paul-moore.com>
Fri, 25 Oct 2019 15:48:14 +0000 (11:48 -0400)
commit0ee0d282d1b766902cb161923787d776af206b05
tree059d13400b64449c3fe3e20dc1bb6223a8db04ef
parent8b231472c1e3a3cfa9edea1556af32154a0d1d65
audit: remove redundant condition check in kauditd_thread()

Warning is found by the code analysis tool:
  "the condition 'if(ac && rc < 0)' is redundant: ac"

The @ac variable has been checked before. It can't be a null pointer
here, so remove the redundant condition check.

Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/audit.c