mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
net: sctp: sctp_outq: remove 'malloced' from its struct
sctp_outq is embedded into sctp_association, and thus never kmalloced in any way. Also, malloced is always 0, thus kfree() is never called. Therefore, remove that dead piece of code. Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Neil Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
ee16371e6c
commit
165a4c3127
2 changed files with 0 additions and 9 deletions
|
|
@ -217,8 +217,6 @@ void sctp_outq_init(struct sctp_association *asoc, struct sctp_outq *q)
|
|||
q->outstanding_bytes = 0;
|
||||
q->empty = 1;
|
||||
q->cork = 0;
|
||||
|
||||
q->malloced = 0;
|
||||
q->out_qlen = 0;
|
||||
}
|
||||
|
||||
|
|
@ -295,10 +293,6 @@ void sctp_outq_free(struct sctp_outq *q)
|
|||
{
|
||||
/* Throw away leftover chunks. */
|
||||
__sctp_outq_teardown(q);
|
||||
|
||||
/* If we were kmalloc()'d, free the memory. */
|
||||
if (q->malloced)
|
||||
kfree(q);
|
||||
}
|
||||
|
||||
/* Put a new chunk in an sctp_outq. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue