Minor: Save an #ifdef in ip4_frag.c

This commit is contained in:
Dirk Ziegelmeier 2016-12-09 21:26:53 +01:00
parent 26e02e84a6
commit 7a1b38db6e

View File

@ -687,6 +687,8 @@ ip4_frag(struct pbuf *p, struct netif *netif, const ip4_addr_t *dest)
struct pbuf *rambuf; struct pbuf *rambuf;
#if !LWIP_NETIF_TX_SINGLE_PBUF #if !LWIP_NETIF_TX_SINGLE_PBUF
struct pbuf *newpbuf; struct pbuf *newpbuf;
u16_t newpbuflen = 0;
u16_t left_to_copy;
#endif #endif
struct ip_hdr *original_iphdr; struct ip_hdr *original_iphdr;
struct ip_hdr *iphdr; struct ip_hdr *iphdr;
@ -696,10 +698,6 @@ ip4_frag(struct pbuf *p, struct netif *netif, const ip4_addr_t *dest)
int last; int last;
u16_t poff = IP_HLEN; u16_t poff = IP_HLEN;
u16_t tmp; u16_t tmp;
#if !LWIP_NETIF_TX_SINGLE_PBUF
u16_t newpbuflen = 0;
u16_t left_to_copy;
#endif
original_iphdr = (struct ip_hdr *)p->payload; original_iphdr = (struct ip_hdr *)p->payload;
iphdr = original_iphdr; iphdr = original_iphdr;