crypto: hisilicon/sec2 - optimize the error return process
authorChenghai Huang <huangchenghai2@huawei.com>
Sat, 9 Dec 2023 07:01:35 +0000 (15:01 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Dec 2023 09:52:53 +0000 (17:52 +0800)
commit1bed82257b1881b689ee41f14ecb4c20a273cac0
tree14ac35da509dad97278e91903431422c205684da
parent03fa301230b6c2b11adcf4f89ecf4ae47ec446b7
crypto: hisilicon/sec2 - optimize the error return process

Add the printf of an error message and optimized the handling
process of ret.

Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec_crypto.c