eliminate potential null deref
Noticed by: Coverity Prevent analysis tool Reviewed by: jhb
This commit is contained in:
parent
7bb53beeda
commit
15ecf3968d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=142324
@ -166,7 +166,6 @@ eventhandler_deregister(struct eventhandler_list *list, eventhandler_tag tag)
|
||||
if (list->el_runcount == 0) {
|
||||
CTR2(KTR_EVH, "%s: removing all items from \"%s\"", __func__,
|
||||
list->el_name);
|
||||
TAILQ_REMOVE(&list->el_entries, ep, ee_link);
|
||||
while (!TAILQ_EMPTY(&list->el_entries)) {
|
||||
ep = TAILQ_FIRST(&list->el_entries);
|
||||
TAILQ_REMOVE(&list->el_entries, ep, ee_link);
|
||||
|
Loading…
Reference in New Issue
Block a user