Skip to content

Commit

Permalink
Remove some dead stores
Browse files Browse the repository at this point in the history
These were caught by the clang static analyzer.
  • Loading branch information
tstellar authored and oconnor663 committed Jun 11, 2024
1 parent 454ee5a commit c8834c2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions c/blake3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c8834c2

Please sign in to comment.