Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298113
b: refs/heads/master
c: 050c0c1
h: refs/heads/master
i:
  298111: 5910f13
v: v3
  • Loading branch information
Artem Bityutskiy authored and David Woodhouse committed Mar 26, 2012
1 parent 94c9730 commit 4c7680b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: b25675722acf8a81638afb1124b38c4752299fa5
refs/heads/master: 050c0c1bb2604a62bb250ff6181e9c00727da510
6 changes: 2 additions & 4 deletions trunk/drivers/mtd/redboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ static int parse_redboot_partitions(struct mtd_info *master,

if ( directory < 0 ) {
offset = master->size + directory * master->erasesize;
while (mtd_can_have_bb(master) &&
mtd_block_isbad(master, offset)) {
while (mtd_block_isbad(master, offset)) {
if (!offset) {
nogood:
printk(KERN_NOTICE "Failed to find a non-bad block to check for RedBoot partition table\n");
Expand All @@ -89,8 +88,7 @@ static int parse_redboot_partitions(struct mtd_info *master,
}
} else {
offset = directory * master->erasesize;
while (mtd_can_have_bb(master) &&
mtd_block_isbad(master, offset)) {
while (mtd_block_isbad(master, offset)) {
offset += master->erasesize;
if (offset == master->size)
goto nogood;
Expand Down

0 comments on commit 4c7680b

Please sign in to comment.