Commit 8fa5df6d authored by Daniel Borkmann's avatar Daniel Borkmann Committed by David S. Miller

net: sctp: sctp_transport: remove unused variable

sctp_transport's member 'malloced' is set to 1, never evaluated
and the structure is kfreed anyway. So just remove it.
Signed-off-by: default avatarDaniel Borkmann <dborkman@redhat.com>
Acked-by: default avatarNeil Horman <nhorman@tuxdriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dacda32e
...@@ -779,10 +779,7 @@ struct sctp_transport { ...@@ -779,10 +779,7 @@ struct sctp_transport {
hb_sent:1, hb_sent:1,
/* Is the Path MTU update pending on this tranport */ /* Is the Path MTU update pending on this tranport */
pmtu_pending:1, pmtu_pending:1;
/* Is this structure kfree()able? */
malloced:1;
/* Has this transport moved the ctsn since we last sacked */ /* Has this transport moved the ctsn since we last sacked */
__u32 sack_generation; __u32 sack_generation;
......
...@@ -123,7 +123,6 @@ struct sctp_transport *sctp_transport_new(struct net *net, ...@@ -123,7 +123,6 @@ struct sctp_transport *sctp_transport_new(struct net *net,
if (!sctp_transport_init(net, transport, addr, gfp)) if (!sctp_transport_init(net, transport, addr, gfp))
goto fail_init; goto fail_init;
transport->malloced = 1;
SCTP_DBG_OBJCNT_INC(transport); SCTP_DBG_OBJCNT_INC(transport);
return transport; return transport;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment