crypto: atmel-aes - Drop if with an always false condition
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 5 Jul 2022 20:51:38 +0000 (22:51 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Jul 2022 08:43:20 +0000 (16:43 +0800)
commit4fdcabb86ab17621b54695e5bb52ceddef434e82
treeefc28c220ef05dd4ff6b6a44eada10acc5a7dc89
parent30fb034361ff1b9bfc569b2d8d66b544ea3eb18f
crypto: atmel-aes - 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 aes_dd 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/atmel-aes.c