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)
commit50ca524d7c9914f451b52c6aa9fbf153494d4b98
tree8cff3bfd6f766d04455ed34cfd47b5297195de2b
parentdbbd5d1efffa97508e70e444a79dc059588b07fd
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