Skip to content

Commit 7c8e694

Browse files
ColinIanKingrichardweinberger
authored andcommitted
jffs2: remove redundant check on outpos > pos
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 <colin.i.king@gmail.com> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent ef027ac commit 7c8e694

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

fs/jffs2/compr_rubin.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -276,11 +276,6 @@ static int rubin_do_compress(int bit_divider, int *bits, unsigned char *data_in,
276276

277277
end_rubin(&rs);
278278

279-
if (outpos > pos) {
280-
/* We failed */
281-
return -1;
282-
}
283-
284279
/* Tell the caller how much we managed to compress,
285280
* and how much space it took */
286281

0 commit comments

Comments
 (0)