1
0
Fork 0

hwrng: don't init list element we're about to add to list.

Another interesting anti-pattern.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
hifive-unleashed-5.1
Rusty Russell 2014-12-08 16:50:40 +08:00 committed by Herbert Xu
parent ebbbfa2483
commit 2d2ec0642a
1 changed files with 0 additions and 1 deletions

View File

@ -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) {