diff options
author | Damjan Marion <damarion@cisco.com> | 2021-04-27 19:41:45 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-04-27 23:41:51 +0000 |
commit | 1bc46cd6e3df29996e528c754bc574c57182cf61 (patch) | |
tree | 605006831fe3751596534e48452f122790768431 /src | |
parent | ef0bac70995bb225fea8955009b34d5b823285ba (diff) |
misc: fix dead stores
Type: fix
Change-Id: I08969e1c4a78f8ac92ec066a3b67e64dc931bc16
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/vnet/ip/ip_packet.h | 2 | ||||
-rw-r--r-- | src/vppinfra/string.h | 5 |
2 files changed, 2 insertions, 5 deletions
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 */ diff --git a/src/vppinfra/string.h b/src/vppinfra/string.h index 5d01e48eb1c..0d2c0655c50 100644 --- a/src/vppinfra/string.h +++ b/src/vppinfra/string.h @@ -678,10 +678,7 @@ clib_count_equal_u8 (u8 * data, uword max_count) u64 bmp; bmp = u8x32_msb_mask ((u8x32) (u8x32_load_unaligned (data) == splat)); if (bmp != 0xffffffff) - { - count += count_trailing_zeros (~bmp); - return max_count; - } + return max_count; data += 32; count += 32; |