Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84290
b: refs/heads/master
c: 6420319
h: refs/heads/master
v: v3
  • Loading branch information
Artem Bityutskiy authored and Artem Bityutskiy committed Jan 25, 2008
1 parent 8ab6b66 commit 482bdc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2f9270e7fe86591d6ba01c0df6ad3f6c035687ea
refs/heads/master: 64203195edf44601d9825284101dcaf7ad54ece8
7 changes: 6 additions & 1 deletion trunk/drivers/mtd/ubi/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,14 @@ static int compare_lebs(struct ubi_device *ubi, const struct ubi_scan_leb *seb,
* FIXME: but this is anyway obsolete and will be removed at
* some point.
*/

dbg_bld("using old crappy leb_ver stuff");

if (v1 == v2) {
ubi_err("PEB %d and PEB %d have the same version %lld",
seb->pnum, pnum, v1);
return -EINVAL;
}

abs = v1 - v2;
if (abs < 0)
abs = -abs;
Expand Down

0 comments on commit 482bdc4

Please sign in to comment.