projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mtd: utilize `mtd_is_*()' functions
[deliverable/linux.git]
/
drivers
/
mtd
/
mtdconcat.c
diff --git
a/drivers/mtd/mtdconcat.c
b/drivers/mtd/mtdconcat.c
index d3fabd144d6c380acd13029420a92957bb264fe2..6df4d4d4eb92bb585c9f0bc08815be208cda2d53 100644
(file)
--- a/
drivers/mtd/mtdconcat.c
+++ b/
drivers/mtd/mtdconcat.c
@@
-95,10
+95,10
@@
concat_read(struct mtd_info *mtd, loff_t from, size_t len,
/* Save information about bitflips! */
if (unlikely(err)) {
/* Save information about bitflips! */
if (unlikely(err)) {
- if (
err == -EBADMSG
) {
+ if (
mtd_is_eccerr(err)
) {
mtd->ecc_stats.failed++;
ret = err;
mtd->ecc_stats.failed++;
ret = err;
- } else if (
err == -EUCLEAN
) {
+ } else if (
mtd_is_bitflip(err)
) {
mtd->ecc_stats.corrected++;
/* Do not overwrite -EBADMSG !! */
if (!ret)
mtd->ecc_stats.corrected++;
/* Do not overwrite -EBADMSG !! */
if (!ret)
@@
-279,10
+279,10
@@
concat_read_oob(struct mtd_info *mtd, loff_t from, struct mtd_oob_ops *ops)
/* Save information about bitflips! */
if (unlikely(err)) {
/* Save information about bitflips! */
if (unlikely(err)) {
- if (
err == -EBADMSG
) {
+ if (
mtd_is_eccerr(err)
) {
mtd->ecc_stats.failed++;
ret = err;
mtd->ecc_stats.failed++;
ret = err;
- } else if (
err == -EUCLEAN
) {
+ } else if (
mtd_is_bitflip(err)
) {
mtd->ecc_stats.corrected++;
/* Do not overwrite -EBADMSG !! */
if (!ret)
mtd->ecc_stats.corrected++;
/* Do not overwrite -EBADMSG !! */
if (!ret)
This page took
0.024448 seconds
and
5
git commands to generate.