linux-audit / audit-kernel

GitHub mirror of the Linux Kernel's audit repository
https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/audit.git
Other
140 stars 37 forks source link

RFE: get rid of unnecessary list_empty() checks in auditfilter and auditsc code #112

Closed rgbriggs closed 5 years ago

rgbriggs commented 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.

pcmoore commented 5 years ago

FWIW, I consider this a RFE, not a BUG.

rgbriggs commented 5 years ago

Posted v1: https://www.redhat.com/archives/linux-audit/2019-April/msg00027.html

rgbriggs commented 5 years ago

Staged in audit/next: 699c1868a743 audit: purge unnecessary list_empty calls

rgbriggs commented 5 years ago

Upstreamed: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=02aff8db6438ce29371fd9cd54c57213f4bb4536