]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: keembay-ocs-ecc - Drop if with an always false condition
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thu, 14 Jul 2022 21:28:20 +0000 (23:28 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Jul 2022 08:22:03 +0000 (16:22 +0800)
commite285f98ca11825a7a2da586e89f759d2d82a407a
tree7a34e111731963ef88d7b98f4ebb2ae8fff1c1c3
parent8864f3cde2da14aa40f0afbe8b9eb0855744e1c2
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>
drivers/crypto/keembay/keembay-ocs-ecc.c