Skip to content

Commit

Permalink
l2tp: remove l2tp_tunnel_priv()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guillaume Nault authored and David S. Miller committed Jun 26, 2018
1 parent c3612f0 commit e484b1c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions net/l2tp/l2tp_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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];
Expand Down

0 comments on commit e484b1c

Please sign in to comment.