From 8eab90418a129b8197d24cac0b9627fff1e2a35a Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Fri, 18 Sep 2015 22:51:32 +0200 Subject: [PATCH] PPP, auth, code cleaning: removed useless variables on stack --- src/netif/ppp/auth.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/netif/ppp/auth.c b/src/netif/ppp/auth.c index 6735e1e3..2f611d57 100644 --- a/src/netif/ppp/auth.c +++ b/src/netif/ppp/auth.c @@ -906,12 +906,6 @@ void start_networks(ppp_pcb *pcb) { int i; const struct protent *protp; #endif /* CCP_SUPPORT || ECP_SUPPORT */ -#if ECP_SUPPORT - int ecp_required; -#endif /* ECP_SUPPORT */ -#if MPPE_SUPPORT - int mppe_required; -#endif /* MPPE_SUPPORT */ new_phase(pcb, PPP_PHASE_NETWORK); @@ -950,19 +944,12 @@ void start_networks(ppp_pcb *pcb) { /* * Bring up other network protocols iff encryption is not required. */ -#if ECP_SUPPORT - ecp_required = ecp_gotoptions[unit].required; -#endif /* ECP_SUPPORT */ -#if MPPE_SUPPORT - mppe_required = pcb->ccp_gotoptions.mppe; -#endif /* MPPE_SUPPORT */ - if (1 #if ECP_SUPPORT - && !ecp_required + && !ecp_gotoptions[unit].required #endif /* ECP_SUPPORT */ #if MPPE_SUPPORT - && !mppe_required + && !pcb->ccp_gotoptions.mppe #endif /* MPPE_SUPPORT */ ) continue_networks(pcb);