mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
net: sctp: minor: remove dead code from sctp_packet
struct sctp_packet is currently embedded into sctp_transport or sits on the stack as 'singleton' in sctp_outq_flush(). Therefore, its member 'malloced' is always 0, thus a kfree() is never called. Because of that, we can just remove this code. Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ae88408256
commit
3e3251b3f2
2 changed files with 2 additions and 6 deletions
|
@ -714,8 +714,7 @@ struct sctp_packet {
|
|||
has_sack:1, /* This packet contains a SACK chunk. */
|
||||
has_auth:1, /* This packet contains an AUTH chunk */
|
||||
has_data:1, /* This packet contains at least 1 DATA chunk */
|
||||
ipfragok:1, /* So let ip fragment this packet */
|
||||
malloced:1; /* Is it malloced? */
|
||||
ipfragok:1; /* So let ip fragment this packet */
|
||||
};
|
||||
|
||||
struct sctp_packet *sctp_packet_init(struct sctp_packet *,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue