oslib/libmtd: Removing useless err assigment
authorErwan Velu <erwan@redhat.com>
Tue, 3 Oct 2017 09:26:44 +0000 (11:26 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 3 Oct 2017 15:06:33 +0000 (09:06 -0600)
At this point, setting up err to 0 is useless since it is never read again.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
oslib/libmtd.c

index 24e9db9cf062da307cd50cc11c17416152efdc73..5d18871b55e82f4c86704a9a284de2c9a519b9d8 100644 (file)
@@ -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:
        normsg("PEB %d passed torture test, do not mark it a bad", eb);
 
 out: