Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 332650
b: refs/heads/master
c: 718894a
h: refs/heads/master
v: v3
  • Loading branch information
Brian Norris authored and David Woodhouse committed Jul 6, 2012
1 parent 1a6098b commit 37deeef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 9fd6b37a08d49c5f9b108509fde8d618f74fb7ad
refs/heads/master: 718894ad94626b72403c21fab5ccdd982147e4c6
9 changes: 3 additions & 6 deletions trunk/drivers/mtd/nand/nand_bbt.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,9 @@

static int check_pattern_no_oob(uint8_t *buf, struct nand_bbt_descr *td)
{
int ret;

ret = memcmp(buf, td->pattern, td->len);
if (!ret)
return ret;
return -1;
if (memcmp(buf, td->pattern, td->len))
return -1;
return 0;
}

/**
Expand Down

0 comments on commit 37deeef

Please sign in to comment.