crypto: hisilicon - fix error handle in hisi_zip_create_req_q
authorZhou Wang <wangzhou1@hisilicon.com>
Wed, 14 Aug 2019 09:28:39 +0000 (17:28 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 15 Aug 2019 11:52:13 +0000 (21:52 +1000)
commit1ed2002f891dc1082eb110eaafccfde96d327aa3
treeb9631fcdbe87443155c720d0e82a160a2ae5be20
parent902f0babf5457578f6bfb9b6ac952c55c4482cb7
crypto: hisilicon - fix error handle in hisi_zip_create_req_q

Directly return error in the first loop in hisi_zip_create_req_q.

Fixes: 62c455ca853e ("crypto: hisilicon - add HiSilicon ZIP accelerator support")
Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/zip/zip_crypto.c