Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165465
b: refs/heads/master
c: a57ca04
h: refs/heads/master
i:
  165463: 0ecce88
v: v3
  • Loading branch information
Roel Kluin authored and David Woodhouse committed Sep 19, 2009
1 parent a3715c5 commit a520f41
Show file tree
Hide file tree
Showing 2 changed files with 3 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: ebf2e93036907fe2a7ddab942aa63d35f97f3b2b
refs/heads/master: a57ca0466af5da83e379d636b8c01fd53b41e2c6
3 changes: 2 additions & 1 deletion trunk/drivers/mtd/mtdpart.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ static struct mtd_part *add_one_partition(struct mtd_info *master,
for (i = 0; i < max && regions[i].offset <= slave->offset; i++)
;
/* The loop searched for the region _behind_ the first one */
i--;
if (i > 0)
i--;

/* Pick biggest erasesize */
for (; i < max && regions[i].offset < end; i++) {
Expand Down

0 comments on commit a520f41

Please sign in to comment.