compression: Move maximum length calculation out of inner loop
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 7 Mar 2022 23:27:10 +0000 (12:27 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 May 2022 02:22:35 +0000 (02:22 +0000)
commit075df819cce783d69069943f39bead833f3628ef
treefe7283305aa4567a4ea8cee589f6c9c1e58efbdf
parent877f007f32d2cee8944b747be988cc062d13d5c0
compression: Move maximum length calculation out of inner loop

This makes the code clearer.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/compression/lzxpress.c