[PATCH ghak112 V1] audit: purge unnecessary list_empty calls

Paul Moore paul at paul-moore.com
Mon Apr 8 22:23:12 UTC 2019


On Mon, Apr 8, 2019 at 12:51 PM Richard Guy Briggs <rgb at 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 at 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




More information about the Linux-audit mailing list