From a8e973f5d7935606d8f7527c26c9990d365ddc98 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sat, 21 Feb 2015 21:48:53 +0100 Subject: [PATCH] PPP, CORE, remove the user ability to set the PPP error code (PPPCTLS_ERRCODE) This is now totally useless, it was used for the PPP core code but it is not used anymore, remove then the user ability to set the PPP error code through PPPCTLS_ERRCODE. --- src/netif/ppp/ppp.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index ce989531..3859234b 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -355,13 +355,6 @@ ppp_ioctl(ppp_pcb *pcb, u8_t cmd, void *arg) *(int *)arg = (int)(pcb->if_up); return ERR_OK; - case PPPCTLS_ERRCODE: /* Set the PPP error code. */ - if (!arg) { - goto fail; - } - pcb->err_code = (u8_t)(*(int *)arg); - return ERR_OK; - case PPPCTLG_ERRCODE: /* Get the PPP error code. */ if (!arg) { goto fail;