Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295176
b: refs/heads/master
c: c527b41
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Mar 23, 2012
1 parent 631ada5 commit 69f36a6
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: 03f4a8226c2f9c14361f75848d1e93139bab90c4
refs/heads/master: c527b414ca3daf0b0c616992d3b580486926a8e9
6 changes: 2 additions & 4 deletions trunk/drivers/mtd/chips/cfi_cmdset_0001.c
Original file line number Diff line number Diff line change
Expand Up @@ -2526,12 +2526,10 @@ static void cfi_intelext_restore_locks(struct mtd_info *mtd)
if (!region->lockmap)
continue;

for (block = 0; block < region->numblocks; block++) {
for_each_clear_bit(block, region->lockmap, region->numblocks) {
len = region->erasesize;
adr = region->offset + block * len;

if (!test_bit(block, region->lockmap))
cfi_intelext_unlock(mtd, adr, len);
cfi_intelext_unlock(mtd, adr, len);
}
}
}
Expand Down

0 comments on commit 69f36a6

Please sign in to comment.