mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18: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:
parent
e36cb10b16
commit
383a7cfed9
@ -78,9 +78,6 @@ ssize_t lzxpress_compress(const uint8_t *uncompressed,
|
|||||||
indic_bit = 0;
|
indic_bit = 0;
|
||||||
nibble_index = 0;
|
nibble_index = 0;
|
||||||
|
|
||||||
if (uncompressed_pos > XPRESS_BLOCK_SIZE)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
while ((uncompressed_pos < uncompressed_size) &&
|
while ((uncompressed_pos < uncompressed_size) &&
|
||||||
(compressed_pos < max_compressed_size)) {
|
(compressed_pos < max_compressed_size)) {
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user