crypto: algapi - fold crypto_init_spawn() into crypto_grab_spawn()
commitaed11cf57ddb24aa97ca3b55c9e26c37759c4baa
authorEric Biggers <ebiggers@google.com>
Fri, 3 Jan 2020 03:59:08 +0000 (2 19:59 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 9 Jan 2020 03:30:57 +0000 (9 11:30 +0800)
tree8f2fc4d674f2a506622a620398246373b77f33aa
parent6d1b41fce0aa916efd1ce0728e1e4bd20a3642d5
crypto: algapi - fold crypto_init_spawn() into crypto_grab_spawn()

Now that crypto_init_spawn() is only called by crypto_grab_spawn(),
simplify things by moving its functionality into crypto_grab_spawn().

In the process of doing this, also be more consistent about when the
spawn and instance are updated, and remove the crypto_spawn::dropref
flag since now it's always set.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/algapi.c
include/crypto/algapi.h