mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
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>
This commit is contained in:
parent
542c2d8320
commit
ee16371e6c
@ -991,8 +991,6 @@ struct sctp_inq {
|
||||
* messages.
|
||||
*/
|
||||
struct work_struct immediate;
|
||||
|
||||
int malloced; /* Is this structure kfree()able? */
|
||||
};
|
||||
|
||||
void sctp_inq_init(struct sctp_inq *);
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user