summaryrefslogtreecommitdiffstats
path: root/net/l2tp
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2018-06-25 16:07:20 +0200
committerDavid S. Miller <davem@davemloft.net>2018-06-26 22:55:51 +0900
commite484b1c227b6c661eba8ae424b271ed5b420ae4a (patch)
tree30c96980b426a62e188148a2116dfe0a0dad8eb1 /net/l2tp
parentc3612f0e901766e1caddabd18e0a34f0e6d82e20 (diff)
downloadlinux-e484b1c227b6c661eba8ae424b271ed5b420ae4a.tar.bz2
l2tp: remove l2tp_tunnel_priv()
This function, and the associated .priv field, are unused. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/l2tp')
-rw-r--r--net/l2tp/l2tp_core.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/net/l2tp/l2tp_core.h b/net/l2tp/l2tp_core.h
index b21c20a4e08f..15e1171ecf7b 100644
--- a/net/l2tp/l2tp_core.h
+++ b/net/l2tp/l2tp_core.h
@@ -187,8 +187,6 @@ struct l2tp_tunnel {
* was created by userspace */
struct work_struct del_work;
-
- uint8_t priv[0]; /* private data */
};
struct l2tp_nl_cmd_ops {
@@ -198,11 +196,6 @@ struct l2tp_nl_cmd_ops {
int (*session_delete)(struct l2tp_session *session);
};
-static inline void *l2tp_tunnel_priv(struct l2tp_tunnel *tunnel)
-{
- return &tunnel->priv[0];
-}
-
static inline void *l2tp_session_priv(struct l2tp_session *session)
{
return &session->priv[0];