From ce50e6d8d15b384ebf7021865a95d6f18d191291 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 2 Nov 2017 01:01:02 +0100 Subject: 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 --- tests/mtd-tests/nandbiterrs.c | 1 - 1 file changed, 1 deletion(-) (limited to 'tests') 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; -- cgit v1.2.3