crypto: lrw - simplify error handling in create()
authorEric Biggers <ebiggers@google.com>
Wed, 26 Feb 2020 04:59:21 +0000 (20:59 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 6 Mar 2020 01:28:23 +0000 (12:28 +1100)
commitd57063103332b95eac9c118900f35700a491da08
treed338266f5455ce046884929b4c7f72ead55ac35e
parent376ffe1acbc642ce38169f7410b1735ffcacd774
crypto: lrw - simplify error handling in create()

Simplify the error handling in the LRW template's ->create() function by
taking advantage of crypto_drop_skcipher() now accepting (as a no-op) a
spawn that hasn't been grabbed yet.

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