Skip to content

Commit

Permalink
net: sctp: sctp_transport: remove unused variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Borkmann authored and David S. Miller committed Apr 17, 2013
1 parent dacda32 commit 8fa5df6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions include/net/sctp/structs.h
Original file line number Diff line number Diff line change
Expand Up @@ -779,10 +779,7 @@ struct sctp_transport {
hb_sent:1,

/* Is the Path MTU update pending on this tranport */
pmtu_pending:1,

/* Is this structure kfree()able? */
malloced:1;
pmtu_pending:1;

/* Has this transport moved the ctsn since we last sacked */
__u32 sack_generation;
Expand Down
1 change: 0 additions & 1 deletion net/sctp/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8fa5df6

Please sign in to comment.