Skip to content

Commit d186faa

Browse files
ovpanaitherbertx
authored andcommitted
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 6ef46fe commit d186faa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/crypto/starfive/jh7110-cryp.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static int starfive_cryp_probe(struct platform_device *pdev)
151151

152152
ret = starfive_aes_register_algs();
153153
if (ret)
154-
goto err_algs_aes;
154+
goto err_engine_start;
155155

156156
ret = starfive_hash_register_algs();
157157
if (ret)
@@ -167,8 +167,6 @@ static int starfive_cryp_probe(struct platform_device *pdev)
167167
starfive_hash_unregister_algs();
168168
err_algs_hash:
169169
starfive_aes_unregister_algs();
170-
err_algs_aes:
171-
crypto_engine_stop(cryp->engine);
172170
err_engine_start:
173171
crypto_engine_exit(cryp->engine);
174172
err_engine:
@@ -193,7 +191,6 @@ static void starfive_cryp_remove(struct platform_device *pdev)
193191
starfive_hash_unregister_algs();
194192
starfive_rsa_unregister_algs();
195193

196-
crypto_engine_stop(cryp->engine);
197194
crypto_engine_exit(cryp->engine);
198195

199196
starfive_dma_cleanup(cryp);

0 commit comments

Comments
 (0)