1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

compression: remove always false constant comparison

We set `uncompressed_pos = 0;` unconditionally, just ~10 lines up.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2022-05-11 10:25:13 +12:00 committed by Andrew Bartlett
parent e36cb10b16
commit 383a7cfed9

View File

@ -78,9 +78,6 @@ ssize_t lzxpress_compress(const uint8_t *uncompressed,
indic_bit = 0;
nibble_index = 0;
if (uncompressed_pos > XPRESS_BLOCK_SIZE)
return 0;
while ((uncompressed_pos < uncompressed_size) &&
(compressed_pos < max_compressed_size)) {
bool found = false;