Closed rgbriggs closed 5 years ago
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 are no longer present, so remove the unnecessary list_empty() call.
FWIW, I consider this a RFE, not a BUG.
Posted v1: https://www.redhat.com/archives/linux-audit/2019-April/msg00027.html
Staged in audit/next: 699c1868a743 audit: purge unnecessary list_empty calls
Upstreamed: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=02aff8db6438ce29371fd9cd54c57213f4bb4536
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 are no longer present, so remove the unnecessary list_empty() call.