summaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-04-16 11:07:15 +0000
committerDavid S. Miller <davem@davemloft.net>2013-04-17 14:13:02 -0400
commit8fa5df6d210a09241876b74d156c57d833dd057b (patch)
tree513f3b01e635eda9258ecfb3e6081680033a9a38 /net/sctp
parentdacda32ee694d9139c336c5e1cdfb826f6296186 (diff)
downloadlinux-8fa5df6d210a09241876b74d156c57d833dd057b.tar.gz
linux-8fa5df6d210a09241876b74d156c57d833dd057b.tar.bz2
linux-8fa5df6d210a09241876b74d156c57d833dd057b.zip
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: Daniel Borkmann <dborkman@redhat.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
-rw-r--r--net/sctp/transport.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sctp/transport.c b/net/sctp/transport.c
index fafd2a461ba0..098f1d5f769e 100644
--- a/net/sctp/transport.c
+++ b/net/sctp/transport.c
@@ -123,7 +123,6 @@ struct sctp_transport *sctp_transport_new(struct net *net,
if (!sctp_transport_init(net, transport, addr, gfp))
goto fail_init;
- transport->malloced = 1;
SCTP_DBG_OBJCNT_INC(transport);
return transport;