summaryrefslogtreecommitdiff
path: root/tests/mtd-tests/nandbiterrs.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2017-11-02 01:01:02 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2017-11-03 19:41:32 +0100
commitce50e6d8d15b384ebf7021865a95d6f18d191291 (patch)
treeec6c1a4278745584ecb45366328c8bcec3558d72 /tests/mtd-tests/nandbiterrs.c
parent03dafe3202372e557f7125dc8155cb1d564d1f5e (diff)
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/mtd-tests/nandbiterrs.c')
-rw-r--r--tests/mtd-tests/nandbiterrs.c1
1 files changed, 0 insertions, 1 deletions
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;