summaryrefslogtreecommitdiffstats
path: root/drivers/char/hw_random
diff options
context:
space:
mode:
authorweiyongjun \(A\) <weiyongjun1@huawei.com>2018-01-10 13:30:59 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2018-01-18 22:52:26 +1100
commit2273f42df1a52bb3aa827163e285528afbf7616c (patch)
treef448b8be1fa2e26e67f944ce14ece1bda351a8c1 /drivers/char/hw_random
parenta8bc71d4960391f732ec0307ebd69e4a25aaf4d3 (diff)
downloadlinux-2273f42df1a52bb3aa827163e285528afbf7616c.tar.bz2
hwrng: exynos - remove redundant dev_err call in exynos_trng_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Acked-by: Ɓukasz Stelmach <l.stelmach@samsung.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/char/hw_random')
-rw-r--r--drivers/char/hw_random/exynos-trng.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/hw_random/exynos-trng.c b/drivers/char/hw_random/exynos-trng.c
index f4643e3ec346..1947aed7c044 100644
--- a/drivers/char/hw_random/exynos-trng.c
+++ b/drivers/char/hw_random/exynos-trng.c
@@ -129,10 +129,8 @@ static int exynos_trng_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
trng->mem = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(trng->mem)) {
- dev_err(&pdev->dev, "Could not map IO resources.\n");
+ if (IS_ERR(trng->mem))
return PTR_ERR(trng->mem);
- }
pm_runtime_enable(&pdev->dev);
ret = pm_runtime_get_sync(&pdev->dev);