From 1bc46cd6e3df29996e528c754bc574c57182cf61 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 27 Apr 2021 19:41:45 +0200 Subject: misc: fix dead stores Type: fix Change-Id: I08969e1c4a78f8ac92ec066a3b67e64dc931bc16 Signed-off-by: Damjan Marion --- src/vnet/ip/ip_packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet') diff --git a/src/vnet/ip/ip_packet.h b/src/vnet/ip/ip_packet.h index c160deefbeb..b0b5f41260c 100644 --- a/src/vnet/ip/ip_packet.h +++ b/src/vnet/ip/ip_packet.h @@ -211,7 +211,7 @@ ip_csum (void *data, u16 n_left) sum8 = u32x8_hadd (sum8, zero); sum4 = u32x8_extract_lo (sum8) + u32x8_extract_hi (sum8); - sum = sum4[0] + sum4[1]; + sum += sum4[0] + sum4[1]; #else /* scalar version */ -- cgit 1.2.3-korg