crypto: chelsio - Avoid some code duplication
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 12 Jul 2020 21:14:04 +0000 (23:14 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 16 Jul 2020 11:49:14 +0000 (21:49 +1000)
commitd110cf0ac1bf24ac098b8ea5b0188c717acf7a02
tree1c0c81e213f2dd4a2de933109c65ee605873c74f
parente456ef6ace3451fa46bd67983345ea758f824865
crypto: chelsio - Avoid some code duplication

The error handling path of 'chcr_authenc_setkey()' is the same as this
error handling code.

So just 'goto out' as done everywhere in the function to simplify the code.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_algo.c