diff --git a/net/ipforward/ipv4_forward.c b/net/ipforward/ipv4_forward.c index 19e365b5b2..edebe410ce 100644 --- a/net/ipforward/ipv4_forward.c +++ b/net/ipforward/ipv4_forward.c @@ -152,10 +152,9 @@ static int ipv4_hdrsize(FAR struct ipv4_hdr_s *ipv4) static int ipv4_decr_ttl(FAR struct ipv4_hdr_s *ipv4) { - FAR struct ipv4_hdr_s *ipv4 = IPv4BUF; uint16_t iphdrlen; uint16_t sum; - int ttl + int ttl; /* Check time-to-live (TTL) */