diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-04-18 17:59:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-22 16:25:21 -0400 |
commit | 3e3251b3f289528732edab386ddf73ac428359b7 (patch) | |
tree | 907f8cdc34e5fe5d71d73c849c4c0b4badd62523 /include/net/sctp | |
parent | ae8840825605f36f98f247323edc150e761cb64e (diff) |
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>
Diffstat (limited to 'include/net/sctp')
-rw-r--r-- | include/net/sctp/structs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 64d469845f25..1bd4c4144fe8 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h | |||
@@ -714,8 +714,7 @@ struct sctp_packet { | |||
714 | has_sack:1, /* This packet contains a SACK chunk. */ | 714 | has_sack:1, /* This packet contains a SACK chunk. */ |
715 | has_auth:1, /* This packet contains an AUTH chunk */ | 715 | has_auth:1, /* This packet contains an AUTH chunk */ |
716 | has_data:1, /* This packet contains at least 1 DATA chunk */ | 716 | has_data:1, /* This packet contains at least 1 DATA chunk */ |
717 | ipfragok:1, /* So let ip fragment this packet */ | 717 | ipfragok:1; /* So let ip fragment this packet */ |
718 | malloced:1; /* Is it malloced? */ | ||
719 | }; | 718 | }; |
720 | 719 | ||
721 | struct sctp_packet *sctp_packet_init(struct sctp_packet *, | 720 | struct sctp_packet *sctp_packet_init(struct sctp_packet *, |