summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErwan Velu <erwan@redhat.com>2017-10-03 11:26:44 +0200
committerJens Axboe <axboe@kernel.dk>2017-10-03 09:06:33 -0600
commit144f470a09ccd544c24abbcdf940ad2f2b55eb82 (patch)
treeedb1a0d06fdb5c214ff1ab2e8f1414eede8401e9
parent6541f4e003fb88567289de929bb4ce0a5d4744bc (diff)
oslib/libmtd: Removing useless err assigment
At this point, setting up err to 0 is useless since it is never read again. Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--oslib/libmtd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/oslib/libmtd.c b/oslib/libmtd.c
index 24e9db9..5d18871 100644
--- a/oslib/libmtd.c
+++ b/oslib/libmtd.c
@@ -1002,7 +1002,6 @@ int mtd_torture(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, int eb)
}
}
- err = 0;
normsg("PEB %d passed torture test, do not mark it a bad", eb);
out: