summaryrefslogtreecommitdiff
path: root/tests/ubi-tests/helpers.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2016-04-26 00:13:22 +0200
committerBrian Norris <computersforpeace@gmail.com>2016-07-13 10:28:07 -0700
commite4c8885bddac201ba0ef88560d6444f39e1ff870 (patch)
tree4d70d534a14ab146f54e1cd26bcdb7f71cb8b378 /tests/ubi-tests/helpers.c
parentd9076259b7f2654599bdf3416ec8ce0ad3b22610 (diff)
libmtd: Fix return status in mtd_torture test function
This patch fixes the return status of the mtd_torture function in libmtd. The torture test function is currently only used by the ubiformat utility to check if a block is bad after a write fails (blocks are marked bad if the function returns an error status). However, the way the function was written, it ALWAYS returns an error value regardless of whether it failed or not. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at> Signed-off-by: Richard Weinberger <richard@nod.at> Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'tests/ubi-tests/helpers.c')
0 files changed, 0 insertions, 0 deletions