From c8834c24a67763cc0fb097316a8d29d38888c9c8 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 11 Jun 2024 07:01:21 -0700 Subject: [PATCH] Remove some dead stores These were caught by the clang static analyzer. --- c/blake3.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/c/blake3.c b/c/blake3.c index 1b44c719..0bed2426 100644 --- a/c/blake3.c +++ b/c/blake3.c @@ -134,9 +134,7 @@ INLINE void chunk_state_update(blake3_chunk_state *self, const uint8_t *input, input_len -= BLAKE3_BLOCK_LEN; } - size_t take = chunk_state_fill_buf(self, input, input_len); - input += take; - input_len -= take; + chunk_state_fill_buf(self, input, input_len); } INLINE output_t chunk_state_output(const blake3_chunk_state *self) {