crypto: stm32 - Drop if block with always false condition
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 31 Jul 2023 16:54:55 +0000 (18:54 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 11 Aug 2023 11:19:27 +0000 (19:19 +0800)
commit3feec4ef9f99e2ca3c4614bc0c46e9c0ad337357
treedec650989b46ed697ea51a29ef7530d578b5b178
parentaec48805163338f8413118796c1dd035661b9140
crypto: stm32 - Drop if block with always false condition

stm32_hash_remove() is only called after stm32_hash_probe() succeeded. In
this case platform_set_drvdata() was called with a non-NULL data patameter.

The check for hdev being non-NULL can be dropped because hdev is never NULL
(or something bad like memory corruption happened and then the check
doesn't help any more either).

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/stm32/stm32-hash.c