diff --git a/source/util/src/tcompression.c b/source/util/src/tcompression.c index 92d8ca3313..73875d836a 100644 --- a/source/util/src/tcompression.c +++ b/source/util/src/tcompression.c @@ -2956,11 +2956,11 @@ int8_t tUpdateCompress(uint32_t oldCmpr, uint32_t newCmpr, uint8_t l2Disabled, u if (update == 0) { if (ol2 == L2_DISABLED) { update = -1; + return update; } - } else { - SET_COMPRESS(ol1, ol2, nlvl, *dst); - update = 1; } + SET_COMPRESS(ol1, ol2, nlvl, *dst); + update = 1; } return update;