Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359407
b: refs/heads/master
c: 99672f3
h: refs/heads/master
i:
  359405: df3440c
  359403: d2c57e3
  359399: 9e0be15
  359391: 0bfa4a8
v: v3
  • Loading branch information
Akinobu Mita authored and Linus Torvalds committed Feb 28, 2013
1 parent e7722f3 commit a7d6751
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 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: 825b8ccb7450c805da7055a33fde032f2f0ed3ae
refs/heads/master: 99672f32aa4ba0f0cc3e8a15f3c0614e63c2851b
9 changes: 1 addition & 8 deletions trunk/drivers/mtd/tests/mtd_speedtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ static int pgcnt;
static int goodebcnt;
static struct timeval start, finish;

static void set_random_data(unsigned char *buf, size_t len)
{
size_t i;

for (i = 0; i < len; ++i)
buf[i] = random32();
}

static int erase_eraseblock(int ebnum)
{
Expand Down Expand Up @@ -396,7 +389,7 @@ static int __init mtd_speedtest_init(void)
goto out;
}

set_random_data(iobuf, mtd->erasesize);
prandom_bytes(iobuf, mtd->erasesize);

err = scan_for_bad_eraseblocks();
if (err)
Expand Down

0 comments on commit a7d6751

Please sign in to comment.