OSDN Git Service

crypto: hisilicon/hpre - optimise 'hpre_algs_register' error path
authorHui Tang <tanghui20@huawei.com>
Fri, 19 Mar 2021 10:44:19 +0000 (18:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Mar 2021 09:15:56 +0000 (20:15 +1100)
commited48466d3ff94fac09ca5c521a24501eb5908277
tree7812f9d8faaef079b9fcf93ad6da428c49791258
parentbbe6c4ba518d82974aab3361a445d60c0785d0cc
crypto: hisilicon/hpre - optimise 'hpre_algs_register' error path

There is redundant code especially when registing new algorithms
in the future.

Signed-off-by: Hui Tang <tanghui20@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/hpre/hpre_crypto.c