On Mon, Apr 8, 2019 at 12:51 PM Richard Guy Briggs <rgb(a)redhat.com> wrote:
The original conditions that led to the use of list_empty() to optimize
list_for_each_entry_rcu() in auditfilter.c and auditsc.c code have been
removed without removing the list_empty() call, but this code example
has been copied several times. Remove the unnecessary list_empty()
calls.
Please see upstream github issue
https://github.com/linux-audit/audit-kernel/issues/112
Signed-off-by: Richard Guy Briggs <rgb(a)redhat.com>
---
kernel/auditfilter.c | 2 --
kernel/auditsc.c | 64 ++++++++++++++++++++++------------------------------
2 files changed, 27 insertions(+), 39 deletions(-)
Merged into audit/next.
--
paul moore
www.paul-moore.com