crypto: caam - use traditional error check pattern

Use traditional error check pattern
	ret = ...;
	if (ret)
		return ret;
	...
instead of checking error code to be 0.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Andy Shevchenko 2020-08-31 10:58:32 +03:00 committed by Herbert Xu
parent 7dfd1e01b3
commit 3ec25b43fa

View File

@ -333,11 +333,10 @@ static int instantiate_rng(struct device *ctrldev, int state_handle_mask,
kfree(desc);
if (!ret)
ret = devm_add_action_or_reset(ctrldev, devm_deinstantiate_rng,
ctrldev);
if (ret)
return ret;
return ret;
return devm_add_action_or_reset(ctrldev, devm_deinstantiate_rng, ctrldev);
}
/*