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

Simplify the error handling in the XTS 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/xts.c