diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-04-16 11:07:11 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-17 14:13:02 -0400 |
commit | ee16371e6c737684215ee10b4b9756b610d81272 (patch) | |
tree | 88854fd1b9497eae8f0f1197167b87ee947ac42b /net/sctp/inqueue.c | |
parent | 542c2d832087aa78566be49aa4284779a0a687b3 (diff) | |
download | blackbird-op-linux-ee16371e6c737684215ee10b4b9756b610d81272.tar.gz blackbird-op-linux-ee16371e6c737684215ee10b4b9756b610d81272.zip |
net: sctp: sctp_inq: remove dead code
sctp_inq is never kmalloced, since it's integrated into sctp_ep_common
and only initialized from eps and assocs. Therefore, remove the dead
code from there.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/inqueue.c')
-rw-r--r-- | net/sctp/inqueue.c | 7 |
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) /* Create a task for delivering data. */ INIT_WORK(&queue->immediate, NULL); - - queue->malloced = 0; } /* Release the memory associated with an SCTP inqueue. */ @@ -80,11 +78,6 @@ void sctp_inq_free(struct sctp_inq *queue) sctp_chunk_free(queue->in_progress); queue->in_progress = NULL; } - - if (queue->malloced) { - /* Dump the master memory segment. */ - kfree(queue); - } } /* Put a new packet in an SCTP inqueue. |