diff options
author | YueHaibing <yuehaibing@huawei.com> | 2021-04-07 22:18:19 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-04-16 21:16:32 +1000 |
commit | e0e638f7e09c10ca0d1e67837125d0dfc6284974 (patch) | |
tree | 9c3034821ff6130183f8407d4c735f3b7ff38571 /drivers/crypto/ccree | |
parent | 6dab3746738939f0b2381d3f71a45fc5b4c674ad (diff) | |
download | linux-e0e638f7e09c10ca0d1e67837125d0dfc6284974.tar.gz linux-e0e638f7e09c10ca0d1e67837125d0dfc6284974.tar.bz2 linux-e0e638f7e09c10ca0d1e67837125d0dfc6284974.zip |
crypto: ccree - Remove redundant dev_err call in init_cc_resources()
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccree')
-rw-r--r-- | drivers/crypto/ccree/cc_driver.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/crypto/ccree/cc_driver.c b/drivers/crypto/ccree/cc_driver.c index d0e59e942568..e599ac6dc162 100644 --- a/drivers/crypto/ccree/cc_driver.c +++ b/drivers/crypto/ccree/cc_driver.c @@ -352,10 +352,8 @@ static int init_cc_resources(struct platform_device *plat_dev) req_mem_cc_regs = platform_get_resource(plat_dev, IORESOURCE_MEM, 0); /* Map registers space */ new_drvdata->cc_base = devm_ioremap_resource(dev, req_mem_cc_regs); - if (IS_ERR(new_drvdata->cc_base)) { - dev_err(dev, "Failed to ioremap registers"); + if (IS_ERR(new_drvdata->cc_base)) return PTR_ERR(new_drvdata->cc_base); - } dev_dbg(dev, "Got MEM resource (%s): %pR\n", req_mem_cc_regs->name, req_mem_cc_regs); |