Skip to content

Commit 8fa5df6

Browse files
Daniel Borkmanndavem330
authored andcommitted
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 <[email protected]> Acked-by: Neil Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent dacda32 commit 8fa5df6

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

include/net/sctp/structs.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -779,10 +779,7 @@ struct sctp_transport {
779779
hb_sent:1,
780780

781781
/* Is the Path MTU update pending on this tranport */
782-
pmtu_pending:1,
783-
784-
/* Is this structure kfree()able? */
785-
malloced:1;
782+
pmtu_pending:1;
786783

787784
/* Has this transport moved the ctsn since we last sacked */
788785
__u32 sack_generation;

net/sctp/transport.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ struct sctp_transport *sctp_transport_new(struct net *net,
123123
if (!sctp_transport_init(net, transport, addr, gfp))
124124
goto fail_init;
125125

126-
transport->malloced = 1;
127126
SCTP_DBG_OBJCNT_INC(transport);
128127

129128
return transport;

0 commit comments

Comments
 (0)