Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274958
b: refs/heads/master
c: 75b66d8
h: refs/heads/master
v: v3
  • Loading branch information
Brian Norris authored and Artem Bityutskiy committed Sep 21, 2011
1 parent 6f98c5a commit 713dac4
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: 6d77b9d0af57409c918ab9501866233082546ba6
refs/heads/master: 75b66d8ccd5772b00a7328c2cf75bc506ec532a1
6 changes: 2 additions & 4 deletions trunk/drivers/mtd/nand/nand_bbt.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,8 @@ static int check_pattern(uint8_t *buf, int len, int paglen, struct nand_bbt_desc
p += end;

/* Compare the pattern */
for (i = 0; i < td->len; i++) {
if (p[i] != td->pattern[i])
return -1;
}
if (memcmp(p, td->pattern, td->len))
return -1;

if (td->options & NAND_BBT_SCANEMPTY) {
p += td->len;
Expand Down

0 comments on commit 713dac4

Please sign in to comment.