net: sctp: minor: remove dead code from sctp_packet
authorDaniel Borkmann <dborkman@redhat.com>
Thu, 18 Apr 2013 21:59:37 +0000 (21:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Apr 2013 20:25:21 +0000 (16:25 -0400)
commit3e3251b3f289528732edab386ddf73ac428359b7
tree907f8cdc34e5fe5d71d73c849c4c0b4badd62523
parentae8840825605f36f98f247323edc150e761cb64e
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>
include/net/sctp/structs.h
net/sctp/output.c