From 2e13e02a408319ba2be3b703fb466d0be4e57d52 Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Wed, 6 Feb 2013 17:29:38 +0100 Subject: l2tp: Remove unused field "state2" in struct l2tp_sess_t Since it's not possible to mix incomming and outgoing states in a session, the "state2" field isn't necessary. Signed-off-by: Guillaume Nault --- accel-pppd/ctrl/l2tp/l2tp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/accel-pppd/ctrl/l2tp/l2tp.c b/accel-pppd/ctrl/l2tp/l2tp.c index 66658d98..fb166f9b 100644 --- a/accel-pppd/ctrl/l2tp/l2tp.c +++ b/accel-pppd/ctrl/l2tp/l2tp.c @@ -75,7 +75,6 @@ struct l2tp_sess_t uint16_t peer_sid; int state1; - int state2; struct triton_context_t sctx; struct triton_timer_t timeout_timer; @@ -498,7 +497,6 @@ static struct l2tp_sess_t *l2tp_tunnel_alloc_session(struct l2tp_conn_t *conn) sess->paren_conn = conn; sess->peer_sid = 0; sess->state1 = STATE_CLOSE; - sess->state2 = STATE_CLOSE; sess->sctx.before_switch = log_switch; sess->sctx.close = l2tp_sess_close; -- cgit v1.2.3