projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6541f4e
)
oslib/libmtd: Removing useless err assigment
author
Erwan Velu
<erwan@redhat.com>
Tue, 3 Oct 2017 09:26:44 +0000
(11:26 +0200)
committer
Jens 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
patch
|
blob
|
blame
|
history
diff --git
a/oslib/libmtd.c
b/oslib/libmtd.c
index 24e9db9cf062da307cd50cc11c17416152efdc73..5d18871b55e82f4c86704a9a284de2c9a519b9d8 100644
(file)
--- 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: