summaryrefslogtreecommitdiffstats
path: root/include/net/sctp/ulpqueue.h
diff options
context:
space:
mode:
authorDaniel Borkmann2013-04-16 13:07:17 +0200
committerDavid S. Miller2013-04-17 20:13:02 +0200
commitc1db7a26ac3f7223a38eaeb46a77d0cf9e6a0d8f (patch)
tree458dceabab609cc738af0b5f58227806eff47288 /include/net/sctp/ulpqueue.h
parentnet: sctp: sctp_bind_addr: remove dead code (diff)
downloadkernel-qcow2-linux-c1db7a26ac3f7223a38eaeb46a77d0cf9e6a0d8f.tar.gz
kernel-qcow2-linux-c1db7a26ac3f7223a38eaeb46a77d0cf9e6a0d8f.tar.xz
kernel-qcow2-linux-c1db7a26ac3f7223a38eaeb46a77d0cf9e6a0d8f.zip
net: sctp: sctp_ulpq: remove 'malloced' struct member
The structure sctp_ulpq is embedded into sctp_association and never separately allocated, also ulpq->malloced is always 0, so that kfree() is never called. Therefore, remove this code. Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sctp/ulpqueue.h')
-rw-r--r--include/net/sctp/ulpqueue.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/net/sctp/ulpqueue.h b/include/net/sctp/ulpqueue.h
index ff1b8ba73ab1..00e50ba3f24b 100644
--- a/include/net/sctp/ulpqueue.h
+++ b/include/net/sctp/ulpqueue.h
@@ -49,7 +49,6 @@
/* A structure to carry information to the ULP (e.g. Sockets API) */
struct sctp_ulpq {
- char malloced;
char pd_mode;
struct sctp_association *asoc;
struct sk_buff_head reasm;