]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: ux500 - Adjust two condition checks in ux500_cryp_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 14 Feb 2018 09:38:44 +0000 (10:38 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Feb 2018 14:16:34 +0000 (22:16 +0800)
commit0e144071bcc6e1683d156dc82759087fbe91780a
tree8cff3bfd6f766d04455ed34cfd47b5297195de2b
parentff3a9ea480f117fcfc513cb96512e6235aadcc55
crypto: ux500 - Adjust two condition checks in ux500_cryp_probe()

The local variable "cryp_error" was used only for two condition checks.

* Check the return values from these function calls directly instead.

* Delete this variable which became unnecessary with this refactoring.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ux500/cryp/cryp_core.c