diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2022-07-14 23:28:20 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-07-22 16:22:03 +0800 |
commit | 693b8755e1b1dd3c0bc22920a8bf2bd495688909 (patch) | |
tree | 7a34e111731963ef88d7b98f4ebb2ae8fff1c1c3 /drivers/crypto/keembay | |
parent | 1b466b8cbfd8321408bb0792b241a2b9222aed62 (diff) | |
download | linux-693b8755e1b1dd3c0bc22920a8bf2bd495688909.tar.gz linux-693b8755e1b1dd3c0bc22920a8bf2bd495688909.tar.bz2 linux-693b8755e1b1dd3c0bc22920a8bf2bd495688909.zip |
crypto: keembay-ocs-ecc - Drop if with an always false condition
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 ecc_dev is never NULL.
This is a preparation for making platform remove callbacks return void.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/keembay')
-rw-r--r-- | drivers/crypto/keembay/keembay-ocs-ecc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/crypto/keembay/keembay-ocs-ecc.c b/drivers/crypto/keembay/keembay-ocs-ecc.c index 5d0785d3f1b5..2269df17514c 100644 --- a/drivers/crypto/keembay/keembay-ocs-ecc.c +++ b/drivers/crypto/keembay/keembay-ocs-ecc.c @@ -976,8 +976,6 @@ static int kmb_ocs_ecc_remove(struct platform_device *pdev) struct ocs_ecc_dev *ecc_dev; ecc_dev = platform_get_drvdata(pdev); - if (!ecc_dev) - return -ENODEV; crypto_unregister_kpp(&ocs_ecdh_p384); crypto_unregister_kpp(&ocs_ecdh_p256); |