Message ID | 20151003210230.GA71026@lkp-hsx03 (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Herbert Xu |
Headers | show |
--- a/drivers/char/hw_random/stm32-rng.c +++ b/drivers/char/hw_random/stm32-rng.c @@ -161,11 +161,7 @@ static int stm32_rng_probe(struct platfo priv->rng.read = stm32_rng_read, priv->rng.priv = (unsigned long) dev; - err = hwrng_register(&priv->rng); - if (err) - return err; - - return 0; + return hwrng_register(&priv->rng); } static const struct of_device_id stm32_rng_match[] = {
drivers/char/hw_random/stm32-rng.c:164:1-4: WARNING: end returns can be simpified Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci CC: Daniel Thompson <daniel.thompson@linaro.org> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> --- stm32-rng.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html