Commit 7c8e694b authored by Colin Ian King's avatar Colin Ian King Committed by Richard Weinberger
Browse files

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: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent ef027aca
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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 */