]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: omap-des - Drop if with an always false condition
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Tue, 5 Jul 2022 20:51:42 +0000 (22:51 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Jul 2022 08:43:21 +0000 (16:43 +0800)
commit56decbb87898ba3fc7dc1d16db36ea759330e8ee
treef61cde9b31a4f81a7d8609427e311411fc940bb7
parent79f9bca2d35321e3da07c14da3b50837bd3ed4b2
crypto: omap-des - 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 dd is never NULL.

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

While touching this driver remove an assignment without effect.

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