Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45633
b: refs/heads/master
c: 82810b7
h: refs/heads/master
i:
  45631: 5614616
v: v3
  • Loading branch information
Artem Bityutskiy authored and David Woodhouse committed Oct 21, 2006
1 parent 4b42c55 commit 7f4b136
Show file tree
Hide file tree
Showing 2 changed files with 4 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: a86aaa6ddf32b0401e64e74174042866e0fb3e20
refs/heads/master: 82810b7b6cc7a74c68881a13b0eb66c7a6370fcc
4 changes: 3 additions & 1 deletion trunk/drivers/mtd/nand/nandsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,7 @@ static void erase_sector(struct nandsim *ns)
*/
static int prog_page(struct nandsim *ns, int num)
{
int i;
union ns_mem *mypage;
u_char *pg_off;

Expand All @@ -867,7 +868,8 @@ static int prog_page(struct nandsim *ns, int num)
}

pg_off = NS_PAGE_BYTE_OFF(ns);
memcpy(pg_off, ns->buf.byte, num);
for (i = 0; i < num; i++)
pg_off[i] &= ns->buf.byte[i];

return 0;
}
Expand Down

0 comments on commit 7f4b136

Please sign in to comment.