net: sctp: remove sctp_ep_common struct member 'malloced'
authorDaniel Borkmann <dborkman@redhat.com>
Mon, 15 Apr 2013 03:27:17 +0000 (03:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Apr 2013 18:11:37 +0000 (14:11 -0400)
commitff2266cddd69f5e0c9d5121ed9218d2f694406cc
treef8d3a419ff1413613a1f05d790cac7dffc75dbc4
parent1e8edc2ab35da30b08b008c26822ec956052bf4b
net: sctp: remove sctp_ep_common struct member 'malloced'

There is actually no need to keep this member in the structure, because
after init it's always 1 anyway, thus always kfree called. This seems to
be an ancient leftover from the very initial implementation from 2.5
times. Only in case the initialization of an association fails, we leave
base.malloced as 0, but we nevertheless kfree it in the error path in
sctp_association_new().

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h
net/sctp/associola.c
net/sctp/endpointola.c