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:
90a3b89
)
random: convert use of typedef ctl_table to struct ctl_table
author
Joe Perches
<
[email protected]
>
Fri, 6 Jun 2014 21:37:58 +0000
(14:37 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 6 Jun 2014 23:08:15 +0000
(16:08 -0700)
This typedef is unnecessary and should just be removed.
Signed-off-by: Joe Perches <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/char/random.c
patch
|
blob
|
history
diff --git
a/drivers/char/random.c
b/drivers/char/random.c
index 06cea7ff3a7c34914c611d0a0a84703a3789edc1..4ad71ef2cd598745d3ca53cba0111edbcebad57d 100644
(file)
--- a/
drivers/char/random.c
+++ b/
drivers/char/random.c
@@
-1582,10
+1582,10
@@
static int proc_do_uuid(struct ctl_table *table, int write,
/*
* Return entropy available scaled to integral bits
*/
-static int proc_do_entropy(ctl_table *table, int write,
+static int proc_do_entropy(
struct
ctl_table *table, int write,
void __user *buffer, size_t *lenp, loff_t *ppos)
{
- ctl_table fake_table;
+
struct
ctl_table fake_table;
int entropy_count;
entropy_count = *(int *)table->data >> ENTROPY_SHIFT;