diff options
author | Martin Kaiser <martin@kaiser.cx> | 2023-07-10 22:27:29 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-07-22 13:59:36 +1200 |
commit | 099f236879068547a05d02b92fb2861694027440 (patch) | |
tree | 2a23b115247eb4c2402644d27aa160c10c5cbc82 | |
parent | 4cb9a7271f46eb1cc58099a3503d4b3f3969e37c (diff) | |
download | linux-099f236879068547a05d02b92fb2861694027440.tar.gz linux-099f236879068547a05d02b92fb2861694027440.tar.bz2 linux-099f236879068547a05d02b92fb2861694027440.zip |
hwrng: ingenic - remove dead assignments
Don't assign a value to ret if we're about to return from the probe
function and ret's value is not used.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | drivers/char/hw_random/ingenic-trng.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/char/hw_random/ingenic-trng.c b/drivers/char/hw_random/ingenic-trng.c index 64286cbdf158..bfec28ceab00 100644 --- a/drivers/char/hw_random/ingenic-trng.c +++ b/drivers/char/hw_random/ingenic-trng.c @@ -86,13 +86,11 @@ static int ingenic_trng_probe(struct platform_device *pdev) trng->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(trng->base)) { pr_err("%s: Failed to map DTRNG registers\n", __func__); - ret = PTR_ERR(trng->base); return PTR_ERR(trng->base); } trng->clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(trng->clk)) { - ret = PTR_ERR(trng->clk); pr_crit("%s: Cannot get DTRNG clock\n", __func__); return PTR_ERR(trng->clk); } |