audit: Use list_move instead of list_del/list_add
authorBaokun Li <libaokun1@huawei.com>
Tue, 8 Jun 2021 03:11:50 +0000 (11:11 +0800)
committerPaul Moore <paul@paul-moore.com>
Wed, 9 Jun 2021 02:18:35 +0000 (22:18 -0400)
commitdd8b865cc40832d32bbf912a65c657483533fdd4
treea4e3677885abb44e0de323e370db3e65ad5f346f
parent619ed58ac4e2fbed71ac05f664a4a17e32537176
audit: Use list_move instead of list_del/list_add

Using list_move() instead of list_del() + list_add().

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Acked-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/audit_tree.c