From 34156e059461211ee0f74f6c278bb68f6fc9bac7 Mon Sep 17 00:00:00 2001 From: Freddie Chopin Date: Thu, 5 Dec 2019 22:02:33 +0100 Subject: [PATCH] PPP, PPPoS: Remove useless cast from pppos_input_sys() pppos_input() now takes `const void*`, so there is no need to cast the payload (`void*`) to anything else. --- src/netif/ppp/pppos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/netif/ppp/pppos.c b/src/netif/ppp/pppos.c index 37f8369f..fcff239d 100644 --- a/src/netif/ppp/pppos.c +++ b/src/netif/ppp/pppos.c @@ -447,7 +447,7 @@ err_t pppos_input_sys(struct pbuf *p, struct netif *inp) { LWIP_ASSERT_CORE_LOCKED(); for (n = p; n; n = n->next) { - pppos_input(ppp, (u8_t*)n->payload, n->len); + pppos_input(ppp, n->payload, n->len); } pbuf_free(p); return ERR_OK;