diff options
author | hujianyang <hujianyang@huawei.com> | 2014-06-24 07:46:36 +0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2014-07-19 10:53:51 +0400 |
commit | c7b5bb0beb80e5ee993118ae82d0b8264526b6bf (patch) | |
tree | 05423b7e781a036807e903f15ad7763ea580ec24 /fs/ubifs/scan.c | |
parent | b793a8c8885d87d9867fb2dbfdc1ef7b5877d71b (diff) | |
download | linux-c7b5bb0beb80e5ee993118ae82d0b8264526b6bf.tar.xz |
UBIFS: remove useless @ecc in struct ubifs_scan_leb
We set @ecc in ubifs_scan_leb only if leb_read returns EBADMSG and
do not use it any more. This patch removes this variable and adds
comments about EBADMSG handling.
Artem: re-phrase commentaries
Signed-off-by: hujianyang <hujianyang@huawei.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'fs/ubifs/scan.c')
-rw-r--r-- | fs/ubifs/scan.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/ubifs/scan.c b/fs/ubifs/scan.c index 58aa05df2bb6..e5b7c591841b 100644 --- a/fs/ubifs/scan.c +++ b/fs/ubifs/scan.c @@ -157,9 +157,10 @@ struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum, return ERR_PTR(err); } - if (err == -EBADMSG) - sleb->ecc = 1; - + /* + * Note, we ignore integrity errors (EBASMSG) because all the nodes are + * protected by CRC checksums. + */ return sleb; } |