aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/inqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/inqueue.c')
-rw-r--r--net/sctp/inqueue.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/net/sctp/inqueue.c b/net/sctp/inqueue.c
index 2d5ad280de38..3221d073448c 100644
--- a/net/sctp/inqueue.c
+++ b/net/sctp/inqueue.c
@@ -58,8 +58,6 @@ void sctp_inq_init(struct sctp_inq *queue)
58 58
59 /* Create a task for delivering data. */ 59 /* Create a task for delivering data. */
60 INIT_WORK(&queue->immediate, NULL); 60 INIT_WORK(&queue->immediate, NULL);
61
62 queue->malloced = 0;
63} 61}
64 62
65/* Release the memory associated with an SCTP inqueue. */ 63/* Release the memory associated with an SCTP inqueue. */
@@ -80,11 +78,6 @@ void sctp_inq_free(struct sctp_inq *queue)
80 sctp_chunk_free(queue->in_progress); 78 sctp_chunk_free(queue->in_progress);
81 queue->in_progress = NULL; 79 queue->in_progress = NULL;
82 } 80 }
83
84 if (queue->malloced) {
85 /* Dump the master memory segment. */
86 kfree(queue);
87 }
88} 81}
89 82
90/* Put a new packet in an SCTP inqueue. 83/* Put a new packet in an SCTP inqueue.