]> Git Repo - J-linux.git/commitdiff
jffs2: remove redundant check on outpos > pos
authorColin Ian King <[email protected]>
Tue, 29 Oct 2024 22:20:15 +0000 (22:20 +0000)
committerRichard Weinberger <[email protected]>
Thu, 14 Nov 2024 19:27:39 +0000 (20:27 +0100)
The check for outpos > pos is always false because outpos is zero
and pos is at least zero; outpos can never be greater than pos.
The check is redundant and can be removed.

Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
fs/jffs2/compr_rubin.c

index 556de100ebd5a5318fec58cc47c6187315ed2b7b..9854253d0108bb10ecef74e17afa85f3ed6a1cf0 100644 (file)
@@ -276,11 +276,6 @@ static int rubin_do_compress(int bit_divider, int *bits, unsigned char *data_in,
 
        end_rubin(&rs);
 
-       if (outpos > pos) {
-               /* We failed */
-               return -1;
-       }
-
        /* Tell the caller how much we managed to compress,
         * and how much space it took */
 
This page took 0.054038 seconds and 4 git commands to generate.