summaryrefslogtreecommitdiff
path: root/drivers/crypto/stm32
diff options
context:
space:
mode:
authorweiyongjun \(A\) <weiyongjun1@huawei.com>2018-01-17 14:40:24 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2018-01-25 17:10:30 +0300
commit60bcf2652ecab0917c6db0bdaa0de362327fa358 (patch)
treef395701a27e01f0e452350ee3a5c86f47fbc31a3 /drivers/crypto/stm32
parent235699e2a99fe40c11a377942e60bad11ce4046e (diff)
downloadlinux-60bcf2652ecab0917c6db0bdaa0de362327fa358.tar.xz
crypto: stm32 - remove redundant dev_err call in stm32_cryp_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: Fabien Dessenne <fabien.dessenne@st.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/stm32')
-rw-r--r--drivers/crypto/stm32/stm32-cryp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/crypto/stm32/stm32-cryp.c b/drivers/crypto/stm32/stm32-cryp.c
index cf1dddbeaa2c..4a06a7a665ee 100644
--- a/drivers/crypto/stm32/stm32-cryp.c
+++ b/drivers/crypto/stm32/stm32-cryp.c
@@ -1052,10 +1052,8 @@ static int stm32_cryp_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
cryp->regs = devm_ioremap_resource(dev, res);
- if (IS_ERR(cryp->regs)) {
- dev_err(dev, "Cannot map CRYP IO\n");
+ if (IS_ERR(cryp->regs))
return PTR_ERR(cryp->regs);
- }
irq = platform_get_irq(pdev, 0);
if (irq < 0) {