Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e484b1c2 authored by Guillaume Nault's avatar Guillaume Nault Committed by David S. Miller
Browse files

l2tp: remove l2tp_tunnel_priv()



This function, and the associated .priv field, are unused.

Signed-off-by: default avatarGuillaume Nault <g.nault@alphalink.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c3612f0e
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -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];