projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38b682b
)
mmc: rename random32() to prandom_u32()
author
Akinobu Mita
<
[email protected]
>
Mon, 29 Apr 2013 23:21:31 +0000
(16:21 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 30 Apr 2013 01:28:42 +0000
(18:28 -0700)
Use preferable function name which implies using a pseudo-random
number generator.
Signed-off-by: Akinobu Mita <
[email protected]
>
Cc: Chris Ball <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/mmc/core/core.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/core.c
b/drivers/mmc/core/core.c
index 08a3cf2a7610882c3e2957a61e9318604adeeaa4..9290bb51a06acd916b4524e61d7cd2483afb2729 100644
(file)
--- a/
drivers/mmc/core/core.c
+++ b/
drivers/mmc/core/core.c
@@
-120,8
+120,8
@@
static void mmc_should_fail_request(struct mmc_host *host,
!should_fail(&host->fail_mmc_request, data->blksz * data->blocks))
return;
- data->error = data_errors[
random
32() % ARRAY_SIZE(data_errors)];
- data->bytes_xfered = (
random
32() % (data->bytes_xfered >> 9)) << 9;
+ data->error = data_errors[
prandom_u
32() % ARRAY_SIZE(data_errors)];
+ data->bytes_xfered = (
prandom_u
32() % (data->bytes_xfered >> 9)) << 9;
}
#else /* CONFIG_FAIL_MMC_REQUEST */