net: sctp: sctp_transport: remove unused variable
authorDaniel Borkmann <dborkman@redhat.com>
Tue, 16 Apr 2013 11:07:15 +0000 (11:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Apr 2013 18:13:02 +0000 (14:13 -0400)
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>
include/net/sctp/structs.h
net/sctp/transport.c

index 73fd5de4d4cc249bc82128fdc478b1e94a796fbe..d581af00120b37c16ec9e08745807e4162cf8b26 100644 (file)
@@ -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;
index fafd2a461ba0bee0f5d8d4750ae9b3b73bdac079..098f1d5f769e264b73aa8b3800ccf3a4eeb75c92 100644 (file)
@@ -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;