Skip to content

Commit

Permalink
crypto: s5p-sss - Drop if with an always false condition
Browse files Browse the repository at this point in the history
The remove callback is only called after probe completed successfully.
In this case platform_set_drvdata() was called with a non-NULL argument
and so pdata is never NULL.

This is a preparation for making platform remove callbacks return void.

Signed-off-by: Uwe Kleine-König <[email protected]>
Acked-by: Vladimir Zapolskiy <[email protected]>
Reviewed-by: Krzysztof Kozlowski <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Uwe Kleine-König authored and herbertx committed Jul 15, 2022
1 parent 35b22c1 commit 1d5390a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/crypto/s5p-sss.c
Original file line number Diff line number Diff line change
@@ -2321,9 +2321,6 @@ static int s5p_aes_remove(struct platform_device *pdev)
struct s5p_aes_dev *pdata = platform_get_drvdata(pdev);
int i;

if (!pdata)
return -ENODEV;

for (i = 0; i < ARRAY_SIZE(algs); i++)
crypto_unregister_skcipher(&algs[i]);

0 comments on commit 1d5390a

Please sign in to comment.