diff options
author | Matias Elo <matias.elo@nokia.com> | 2022-03-18 11:22:22 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-03-21 08:31:26 +0200 |
commit | 5562c17122c7e4e9077304c938c541dfb772b2d5 (patch) | |
tree | 5063666aeec8e8767d3c6753c667d8abfe291f56 /example | |
parent | 156f4899de163b0c71c43b36c42767cf0eacf8ba (diff) |
example: ipfragreass: remove unused but set variable
Fixes compilation error with Clang 14 about unused but set variable.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Janne Peltonen <janne.peltonen@nokia.com>
Diffstat (limited to 'example')
-rw-r--r-- | example/ipfragreass/odp_ipfragreass_reassemble.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/example/ipfragreass/odp_ipfragreass_reassemble.c b/example/ipfragreass/odp_ipfragreass_reassemble.c index 57e0f375a..2542a3b97 100644 --- a/example/ipfragreass/odp_ipfragreass_reassemble.c +++ b/example/ipfragreass/odp_ipfragreass_reassemble.c @@ -183,11 +183,9 @@ static struct packet *extract_complete_packet(struct packet *tail, struct packet *current = tail; odph_ipv4hdr_t tail_hdr; uint16_t final_frag_offset; - uint16_t expected_frag_offset; tail_hdr = *(odph_ipv4hdr_t *)odp_packet_data(tail->handle); final_frag_offset = ipv4hdr_fragment_offset_oct(tail_hdr); - expected_frag_offset = final_frag_offset; while (current) { odph_ipv4hdr_t curr_hdr; uint16_t curr_offset_oct; @@ -258,7 +256,6 @@ static struct packet *extract_complete_packet(struct packet *tail, break; } - expected_frag_offset -= prev_oct; current = prev; } |