dccp_li_hist_entry_delete is currently unused.

Let's use it. Based on comments by Arnaldo.

Signed-off-by: Ian McDonald <[EMAIL PROTECTED]>
---
diff --git a/net/dccp/ccids/lib/loss_interval.c 
b/net/dccp/ccids/lib/loss_interval.c
index 83b5504..15c1d59 100644
--- a/net/dccp/ccids/lib/loss_interval.c
+++ b/net/dccp/ccids/lib/loss_interval.c
@@ -46,7 +46,7 @@ void dccp_li_hist_purge(struct list_head *list)
 
        list_for_each_entry_safe(entry, next, list, dccplih_node) {
                list_del_init(&entry->dccplih_node);
-               kmem_cache_free(dccp_li_cachep, entry);
+               dccp_li_hist_entry_delete(entry);
        }
 }
 
@@ -267,7 +267,7 @@ void dccp_li_update_li(struct sock *sk,
 
                tail = li_hist_list->prev;
                list_del(tail);
-               kmem_cache_free(dccp_li_cachep, tail);
+               dccp_li_hist_entry_delete((struct dccp_li_hist_entry *)tail);
 
                /* Create the newest interval */
                entry->dccplih_seqno = seq_loss;
-
To unsubscribe from this list: send the line "unsubscribe dccp" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to