Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: starfive - remove unneeded crypto_engine_stop() call

The explicit crypto_engine_stop() call is not needed, as it is already
called internally by crypto_engine_exit().

Signed-off-by: Ovidiu Panait <ovidiu.panait.oss@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Ovidiu Panait and committed by
Herbert Xu
d186faa3 6ef46fec

+1 -4
+1 -4
drivers/crypto/starfive/jh7110-cryp.c
··· 151 151 152 152 ret = starfive_aes_register_algs(); 153 153 if (ret) 154 - goto err_algs_aes; 154 + goto err_engine_start; 155 155 156 156 ret = starfive_hash_register_algs(); 157 157 if (ret) ··· 167 167 starfive_hash_unregister_algs(); 168 168 err_algs_hash: 169 169 starfive_aes_unregister_algs(); 170 - err_algs_aes: 171 - crypto_engine_stop(cryp->engine); 172 170 err_engine_start: 173 171 crypto_engine_exit(cryp->engine); 174 172 err_engine: ··· 191 193 starfive_hash_unregister_algs(); 192 194 starfive_rsa_unregister_algs(); 193 195 194 - crypto_engine_stop(cryp->engine); 195 196 crypto_engine_exit(cryp->engine); 196 197 197 198 starfive_dma_cleanup(cryp);