aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-04-16 07:07:15 -0400
committerDavid S. Miller <davem@davemloft.net>2013-04-17 14:13:02 -0400
commit8fa5df6d210a09241876b74d156c57d833dd057b (patch)
tree513f3b01e635eda9258ecfb3e6081680033a9a38
parentdacda32ee694d9139c336c5e1cdfb826f6296186 (diff)
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>
-rw-r--r--include/net/sctp/structs.h5
-rw-r--r--net/sctp/transport.c1
2 files changed, 1 insertions, 5 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h
index 73fd5de4d4cc..d581af00120b 100644
--- a/include/net/sctp/structs.h
+++ b/include/net/sctp/structs.h
@@ -779,10 +779,7 @@ struct sctp_transport {
779 hb_sent:1, 779 hb_sent:1,
780 780
781 /* Is the Path MTU update pending on this tranport */ 781 /* Is the Path MTU update pending on this tranport */
782 pmtu_pending:1, 782 pmtu_pending:1;
783
784 /* Is this structure kfree()able? */
785 malloced:1;
786 783
787 /* Has this transport moved the ctsn since we last sacked */ 784 /* Has this transport moved the ctsn since we last sacked */
788 __u32 sack_generation; 785 __u32 sack_generation;
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,
123 if (!sctp_transport_init(net, transport, addr, gfp)) 123 if (!sctp_transport_init(net, transport, addr, gfp))
124 goto fail_init; 124 goto fail_init;
125 125
126 transport->malloced = 1;
127 SCTP_DBG_OBJCNT_INC(transport); 126 SCTP_DBG_OBJCNT_INC(transport);
128 127
129 return transport; 128 return transport;