projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebbbfa2
)
hwrng: don't init list element we're about to add to list.
author
Rusty Russell
<rusty@rustcorp.com.au>
Mon, 8 Dec 2014 08:50:40 +0000
(16:50 +0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 22 Dec 2014 12:02:41 +0000
(23:02 +1100)
Another interesting anti-pattern.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/core.c
patch
|
blob
|
history
diff --git
a/drivers/char/hw_random/core.c
b/drivers/char/hw_random/core.c
index
e384ee3
..
6ec4225
100644
(file)
--- a/
drivers/char/hw_random/core.c
+++ b/
drivers/char/hw_random/core.c
@@
-485,7
+485,6
@@
int hwrng_register(struct hwrng *rng)
goto out_unlock;
}
}
- INIT_LIST_HEAD(&rng->list);
list_add_tail(&rng->list, &rng_list);
if (old_rng && !rng->init) {