remove unecessary if in flush_nft_cache()
This commit is contained in:
parent
7245a68e5c
commit
70b9526834
|
@ -608,7 +608,6 @@ flush_nft_cache(struct rule_list *head)
|
|||
rule_t *p1, *p2;
|
||||
|
||||
p1 = LIST_FIRST(head);
|
||||
if (p1 != NULL) {
|
||||
while (p1 != NULL) {
|
||||
p2 = (rule_t *)LIST_NEXT(p1, entry);
|
||||
if (p1->desc != NULL) {
|
||||
|
@ -623,7 +622,6 @@ flush_nft_cache(struct rule_list *head)
|
|||
free(p1);
|
||||
p1 = p2;
|
||||
}
|
||||
}
|
||||
LIST_INIT(head);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue