From: David Oberhollenzer Date: Thu, 2 Nov 2017 00:01:02 +0000 (+0100) Subject: nandbiterrs: Fix copy & paste fail X-Git-Tag: v2.0.2~19 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ce50e6d8d15b384ebf7021865a95d6f18d191291;p=mtd-utils.git nandbiterrs: Fix copy & paste fail When porting some of the mtd-tests to user space, some code was simplified. Among others, a while loop that iterates of page contents was replaced with a for loop, but the old increment was left in place, so every second byte was skipped. This patch removes the erroneous second increment. Signed-off-by: David Oberhollenzer --- diff --git a/tests/mtd-tests/nandbiterrs.c b/tests/mtd-tests/nandbiterrs.c index ef987dc..24a6c03 100644 --- a/tests/mtd-tests/nandbiterrs.c +++ b/tests/mtd-tests/nandbiterrs.c @@ -340,7 +340,6 @@ static int insert_biterror(void) return 0; } } - ++byte; } fputs("biterror: Failed to find a '1' bit\n", stderr); return -1;