From 144f470a09ccd544c24abbcdf940ad2f2b55eb82 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Tue, 3 Oct 2017 11:26:44 +0200 Subject: [PATCH] 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 --- oslib/libmtd.c | 1 - 1 file changed, 1 deletion(-) diff --git a/oslib/libmtd.c b/oslib/libmtd.c index 24e9db9c..5d18871b 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: -- 2.25.1