mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-28 18:16:13 +00:00
PPP, CORE, removed useless st variable in ppp_close()
Code cleaning.
This commit is contained in:
parent
07f9212799
commit
50ecd2c12c
@ -274,8 +274,6 @@ int ppp_open(ppp_pcb *pcb, u16_t holdoff) {
|
||||
int
|
||||
ppp_close(ppp_pcb *pcb)
|
||||
{
|
||||
int st = 0;
|
||||
|
||||
pcb->err_code = PPPERR_USER;
|
||||
|
||||
/* dead phase, nothing to do, call the status callback to be consistent */
|
||||
@ -298,7 +296,7 @@ ppp_close(ppp_pcb *pcb)
|
||||
/* LCP close request, this will leave us at PPP_PHASE_DEAD. */
|
||||
lcp_close(pcb, "User request");
|
||||
|
||||
return st;
|
||||
return PPPERR_NONE;
|
||||
}
|
||||
|
||||
/* This function is called when carrier is lost on the PPP channel. */
|
||||
|
Loading…
Reference in New Issue
Block a user